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 2.4.0.280 (the Xamarin.Android.Support.v4 and other references are of version 25.4.0.2) . 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.

Posts

  • 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.