【问题标题】:target 'MonoAndroid,Version=v6.0' project dependencies目标 'MonoAndroid,Version=v6.0' 项目依赖
【发布时间】:2018-11-27 01:53:38
【问题描述】:

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

严重性代码描述项目文件行抑制状态 错误无法安装包“Xamarin.Android.Support.Compat 25.3.1”。您正在尝试将此包安装到以“MonoAndroid,Version=v6.0”为目标的项目中,但该包不包含任何与该框架兼容的程序集引用或内容文件。有关详细信息,请联系包作者。 0

【问题讨论】:

    标签: xamarin xamarin.android


    【解决方案1】:

    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

    【讨论】:

    • @LogeshPalani 我的回答中的第二个链接:developer.xamarin.com/guides/android/application_fundamentals/…
    • 我接受这个答案,但有新的错误存在
    • 错误'无法安装包'linqtotwitter 4.1.0'。您正在尝试将此包安装到以“.NETPortable,Version=v4.5,Profile=Profile259”为目标的项目中,但该包不包含任何与该框架兼容的程序集引用或内容文件。有关更多信息,请联系包作者'。 0
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-30
    • 2019-01-27
    • 1970-01-01
    • 1970-01-01
    • 2014-05-25
    相关资源
    最近更新 更多