Home > other >  when create xamarin.android app has error
when create xamarin.android app has error

Time:01-30

Hello When I create a Xamarin app on Android, I encounter the following errors after creating the application

1-failed linking file resources. 2-attribute layout_behavior (aka com.companyname.app2:layout_behavior) not found.

After seeing this problem, I saw the used version of Android, which was Android 11, and changed it to version 8.1. The errors were fixed, but it showed me new errors

Package Xamarin.Google.Android.Material 1.0.0.1 is not compatible with monoandroid81 (MonoAndroid,Version=v8.1). Package Xamarin.Google.Android.Material 1.0.0.1 supports: monoandroid90 (MonoAndroid,Version=v9.0) Package Xamarin.AndroidX.AppCompat 1.2.0.5 is not compatible with monoandroid81 (MonoAndroid,Version=v8.1). Package Xamarin.AndroidX.AppCompat 1.2.0.5 supports: monoandroid90 (MonoAndroid,Version=v9.0)

Because the program has an error, I can not use nuget And I guess Visual Studio builds my project with Android 11 libraries. But I do not know how to change this Please help me to fix the errors

CodePudding user response:

Did error may have mentioned the android SDK? In that case, maybe I can help you.

CodePudding user response:

In my case, this video helped me(youtube.com/watch?v=PHk7HWG4jc8).

CodePudding user response:

Then I can't help you because I'm not involved in development android applications.

  •  Tags:  
  • Related