Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to add Xamarin Google Play Services

I'm unable to add GCM to my Xamarin app. This is the output from the package console:

Adding Xamarin.GooglePlayServices.Gcm...
Attempting to resolve dependency 'Xamarin.GooglePlayServices.Base (= 29.0.0.1)'.
Attempting to resolve dependency 'Xamarin.GooglePlayServices.Basement (= 29.0.0.1)'.
Attempting to resolve dependency 'Xamarin.Android.Support.v4 (≥ 23.1.1.1)'.
Attempting to resolve dependency 'Xamarin.GooglePlayServices.Measurement (= 29.0.0.1)'.
Updating 'Xamarin.Android.Support.v4 23.0.1.3' to 'Xamarin.Android.Support.v4 23.3.0' failed. Unable to find a version of 'Xamarin.Forms' that is compatible with 'Xamarin.Android.Support.v4 23.3.0'.
like image 739
MarkB Avatar asked Oct 19 '22 11:10

MarkB


1 Answers

For this version you must install an earlier version of Xamarin.GooglePlayServices.Gcm. I had no problems with 27.0.0.

If you need the newest version, you could do this:

  • uninstall xamarin.forms nuget package
  • update all android packages to 23.3.0
  • install Xamarin.GooglePlayServices.Gcm
  • search for xamarin.forms and set in options ignore dependencies
  • install newest version

Of course you must be aware of problems, since this is not recommended with good reasons.

like image 196
Matt Avatar answered Oct 21 '22 04:10

Matt