xamarin - 目标 'MonoAndroid,Version=v6.0' 项目依赖项

标签 xamarin xamarin.android

我的 Visual Studio 2017 nuget 包无法安装 Xamarin.Forms 可移植类库项目中出现以下错误

Severity Code Description Project File Line Suppression State Error Could not install package 'Xamarin.Android.Support.Compat 25.3.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. 0

最佳答案

Xamarin.Android.Support.Compat版本 25.3.1 具有以下依赖项

  • MonoAndroid 7.0
  • Xamarin.Android.Support.Annotations (= 25.3.1)
  • Xamarin.Build.Download (>= 0.4.3)

  • 回复:https://www.nuget.org/packages/Xamarin.Android.Support.Compat/25.3.1

    您需要设置 Target Framework至少到 7.0 .

    回复:https://developer.xamarin.com/guides/android/application_fundamentals/understanding_android_api_levels/#Target_Framework

    关于xamarin - 目标 'MonoAndroid,Version=v6.0' 项目依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47399204/

    相关文章:

    android - 从Android中的内存流播放WAV音频

    android - Xamarin Android ListView 的垂直滚动

    ios - Xcode 在打开 Storyboard时崩溃

    xamarin - 在 Xamarin Studio 中找不到类型或命名空间名称 'Page'

    android - 选项卡内的 fragment 在初始加载时不会显示

    visual-studio-2010 - 安装适用于 Android 的 Xamarin Mono

    c# - 可移植类库与库项目

    android - 以编程方式分配进度条样式 Android

    c# - 显示页面几秒钟并导航到另一个页面

    java - 无法使用 Android 以太网管理器检索有线网络的 IP 和 MAC 地址