Hello,
I have a Xamarin.Android project developed for Android 8.0 using Visual Studio 2017.
Now I would like to upgrade the Android version from 8 to 11 and open it in VS 2022 at the same a time.
As soon as I do that I get several error messages.
Assembly 'Xamarin.Android.Support.v4' is using '[assembly: Android.IncludeAndroidResourcesFromAttribute]', which is no longer supported. Use a newer version of this NuGet package or notify the library author.
Assembly 'Xamarin.Android.Support.v4' is using '[assembly: Java.Interop.JavaLibraryReferenceAttribute]', which is no longer supported. Use a newer version of this NuGet package or notify the library author.
Assembly 'Xamarin.Android.Support.v4' is using '[assembly: Java.Interop.JavaLibraryReferenceAttribute]', which is no longer supported. Use a newer version of this NuGet package or notify the library author.
I have already installed the latest version of Xamarin.Android.Support.v4
and still I get this error message. However, only with Visual Studio 22. With 2017 everything is ok.
Der nächste Fehler entsteht sowohl bei VS 17 also auch bei VS 22 sobald ich versuche die Android Version der App von 8 auf 10 oder 11 zu ändern
System.InvalidOperationException: Unable to find the required Android.Runtime.JNIEnvInit
method tokens at
Xamarin.Android.Tasks.GeneratePackageManagerJava.GetRequiredTokens(String
assemblyFilePath, Int32& android_runtime_jnienv_class_token, Int32&
jnienv_initialize_method_token, Int32& jnienv_registerjninatives_method_token)
at Xamarin.Android.Tasks.GeneratePackageManagerJava.AddEnvironment()
at Xamarin.Android.Tasks.GeneratePackageManagerJava.RunTask()
at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in
/Users/runner/work/1/s/xamarin-android/external/xamarin-android-
tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 17
I am really at a loss. I really need at least Android 10 to be able to use the Zebra SDK. Otherwise, I would have to write a completely new app with version 10+, which would certainly not please the customer.