Forum Cross Platform with Xamarin
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Xamarin.GooglePlayServices.Wearable compatibility in VS2017 Community version 15.5.1

BraveDodoBraveDodo NLMember ✭✭
edited December 2017 in Cross Platform with Xamarin

After updating VS2017 Community to version 15.5.1 I cannot get my old Xamarin.Forms PCL apps to start. When creating a new app in either Shared or .NET Standard it will run the app on my device after I downgrade Xamarin.Forms to version (the Xamarin.Android.Support.v4 and other references are of version . As soon as I reference Xamarin.GooglePlayservice.Wearable (I tried all versions) I get errors in the Android MainActivity.cs when running the app on my device.

Sometimes it stops at LoadApplication(new App()); giving the error: System.NullReferenceException: Object reference not set to an instance of an object.

Mostly it stops at base.OnCreate(bundle); with either a runtime exception or the error:Java.Lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

Since I used these versions in my former PCL solutions, I was hoping it would work on the new version of VS2017, but it does not.
I have attached the output files of the errors.

It seems like it is a compatibility error, but I can't find the problem. What can I do to make my app run again. I need Xamarin.GooglePlayservice.Wearable since Xamarin.Android.Wear is not compatible with Xamarin.Forms.


  • BraveDodoBraveDodo NLMember ✭✭

    After updating VS2017 Community to version 15.5.2 I could get my app to run again using the latest version of Xamarin.Forms (v2.5.0.121934) and Xamarin.GooglePlayservice.Wearable version v42.1001.0.

Sign In or Register to comment.