Reputation: 61
when i try to install "App center push" nuget package, this require Xamarin.firebase.messaging and when i try to install Xamarin.firebase.messaging , show me this error
For resolution, i try to change target framework of android , but not working.
Can you help me? this is the error:
The package Xamarin.Firebase.Messaging 71.1740.0 is not compatible with
monoandroid81 (MonoAndroid,Version=v8.1). The package Xamarin.Firebase.Messaging 71.1740.0 support:
monoandroid90 (MonoAndroid,Version=v9.0)
Upvotes: 4
Views: 1830
Reputation: 10346
I can reproduce your issue when my Target Framework version is Android 8.1.
I then double-click Android Properties, choose Application tab, and set Compile using Android version: (Target Framework) as Android 9.0.
Then you go to Android Manifest tab, will find the Target Android Version (in Android Manifest) also become Android 9.0, now you can install Xamarin.firebase.messaging for Android project, it works fine.
If the Target Android version is not Android 9.0 when you have change Compile using Android Version: (Target Framework), you can change this as Android 9.0, then see if still having same issue.
Upvotes: 2