我试图更新xamarin android中的nuget包但我收到此错误
Severity Code Description Project File Line Suppression State
Error Could not install package 'Xamarin.Android.Support.Compat 24.2.1'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
在Android清单中的我有<uses-sdk android:minSdkVersion="24" />
任何想法?
答案 0 :(得分:0)
您需要的软件包依赖于Android 6(API 23)。您的minSdkVersion为高,将其更改为<uses-sdk android:minSdkVersion="23" />
答案 1 :(得分:0)
在我的情况下,我使用的是Android API版本23,而且大于23的API版本支持 Compat版本24.2.1 。我安装了 API版本24 ,或者你可以说 Android版本7.0 然后它已成功安装。
确保 将应用的目标版本设置为安装在API版本23之上的最新Android版本。
确保 以管理员身份运行visual studio,然后在某些情况下安装软件包,它需要具有管理员权限才能读取或替换软件包。