2016-08-03 35 views
4

当我试图Xamarin.Forms NuGet包升级从2.0-2.1至2.3.1.114(目前最新的稳定),我收到以下错误(即使有新空白项目)有没有办法解决它?无法为Android项目升级Xamarin.Forms NuGet包

enter image description here

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

回答

1

尝试使用此选项为您的项目:

enter image description here

+0

很遗憾,没有帮助......同样的错误 – Bob

+0

奇怪,但它与Xamarin.Android.Support.v4包的所有其他版本的作品 – Bob

1

此错误是最有可能是因为您的xamarin形成的版本是不通过的NuGet Xamarin.Android.Support.v4 23.3.0可用的兼容。在xamarin官方论坛上检查this线程。按照这个线程,Xamarin表单不支持23.3。更可能的原因是您的xamarin表单版本与最新更新不兼容。您可以尝试将表单更新为最新版本。如果这不起作用,那么你可能应该继续使用你已有的版本。