How to solve the error when installing Xamarin Google Play Services - GCM?

Severity code Description Project file line suppression status Error Failed to install package "Xamarin.GooglePlayServices.Gcm 42.1001.0". You are trying to install this package in a project that targets “MonoAndroid, Version = v6.0,” but the package does not contain assembly references or content files that are compatible with this infrastructure. For more information, contact the author of the package. 0

+4
source share
5 answers

Try installing this package: Xamarin.GooglePlayServices.Gcm -Version 29.0.0.2

+5
source

. Xamarin.GooglePlayServices.Base 29.0.0.2

+3

29.0.0.1

0

Visual Studio - 2015 target framework - 7.0 Nuget Google play 29.0.0.1/32.xxx/40.xxx/60.1142.0

2 , ...

.

  1. VS Android SDK, SDK
  2. → Android SDK manager VS → → Google play
  3. VS → → xamarin → → VS.
  4. , Google , Google Obj , - Android.gms.map, .

, , .

0

, , - . nuget, . :

Version conflict detected for Xamarin.GooglePlayServices.Basement. Install/reference Xamarin.GooglePlayServices.Basement 60.1142.1 directly to project LoyaltyWorx.Android to resolve this issue. 
 LoyaltyWorx.Android -> Xamarin.GooglePlayServices.Base 60.1142.1 -> Xamarin.GooglePlayServices.Basement (= 60.1142.1) 
 LoyaltyWorx.Android -> LoyaltyWorx -> Plugin.PushNotification 1.3.0 -> Xamarin.Firebase.Messaging 60.1142.0 -> Xamarin.GooglePlayServices.Basement (= 60.1142.0).

Xamarin.GooglePlayServices.Basement 60.1142.1

0

Source: https://habr.com/ru/post/1668854/


All Articles