Visual Studio 2017 Xamarin 无法安装 nuget 包 MvvmCross.Plugin.DownloadCache 插件
Visual Studio 2017 Xamarin can't install nuget package MvvmCross.Plugin.DownloadCache plugin
我已经安装了 Visual Studio 2017。我尝试使用 mvvm cross 创建应用程序。我成功添加了 mvvm 交叉库,但是当我尝试安装 MvvmCross.Plugin.DownloadCache 包时,我得到了这个:
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.
要安装 Xamarin.Android.Support.Compat
,您的应用程序必须面向 Android 7.0 或更高版本。
解决这个问题:
在Visual Studio中:
- 右键单击项目 > 属性 > 应用程序
- 将目标设置为 7.0 或更高版本,使用最新平台编译也是一个好主意
在 Xamarin Studio 中:
- 右键单击项目 > 选项 > Android 应用程序
- 将目标设置为 7.0 或更高版本,使用最新平台编译也是一个好主意
我已经安装了 Visual Studio 2017。我尝试使用 mvvm cross 创建应用程序。我成功添加了 mvvm 交叉库,但是当我尝试安装 MvvmCross.Plugin.DownloadCache 包时,我得到了这个:
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.
要安装 Xamarin.Android.Support.Compat
,您的应用程序必须面向 Android 7.0 或更高版本。
解决这个问题:
在Visual Studio中:
- 右键单击项目 > 属性 > 应用程序
- 将目标设置为 7.0 或更高版本,使用最新平台编译也是一个好主意
在 Xamarin Studio 中:
- 右键单击项目 > 选项 > Android 应用程序
- 将目标设置为 7.0 或更高版本,使用最新平台编译也是一个好主意