【发布时间】:2018-04-05 03:01:46
【问题描述】:
在我的 Xamarin.Android 项目中更新已安装的 Nuget 包时遇到问题。运行更新时,我收到以下错误:
Could not install package 'Xamarin.Android.Support.Animated.Vector.Drawable
27.0.2'. You are trying to install this package into a project that targets
'MonoAndroid,Version=v8.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.
快速的谷歌搜索产生了几个结果,这些结果与this question 中的答案相似。看来我只需要确保我的Target Framework 设置得足够高。
在 instructions found here 之后,我打算在 Visual Studio 2017 中更改 Target Framework,但我发现它已经设置为使用 8.0。
为了让这些包更新,我还缺少另一个步骤吗?
【问题讨论】:
-
API 27 != 8.0。它实际上是8.1。因此,您需要 Android 8.1。
-
确保 VS 是最新的
标签: c# visual-studio xamarin xamarin.android nuget