我正在尝试下载 Xamarin.Android.Support.v7.RecyclerView(版本 24.2.1),但显示以下消息:
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.
如何更新 MonoAndroid,Version=v6.0
?具体如何运作?
最佳答案
实际上,错误表明 Xamarin.Android.Support.Compat 24.2.1 不包含 MonoAndroid,Version=v6.0 的程序集。
因此需要更新Xamarin.Android.Support.Compat 24.2.1。
要解决您的问题 - 您的应用需要将其目标框架设置为 Android 7.0(API 级别 24)或更高版本才能安装。
您可以在项目选项 -> 常规 -> 目标框架中更改它。
关于android - 无法安装软件包 'Xamarin.Android.Support.Compat 24.2.1',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44264260/