Issue
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)
Solution
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.
Update
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.
Answered By - Cherry Bu - MSFT
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.