无法升级Xamarin.Android的nuget程序包 [英] Cannot upgrade nuget packages for Xamarin.Android

查看:134
本文介绍了无法升级Xamarin.Android的nuget程序包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2015更新2中启动了空白的跨平台项目:Visual C#->跨平台->空白应用程序(Xamarin.Forms可移植).

I started blank cross-platform projects in Visual Studio 2015 update 2: Visual C# -> Cross-platform -> Blank App (Xamarin.Forms portable).

它在解决方案中创建了6个项目.然后,我尝试为所有这些更新金块包装.不用说我遇到的第一个问题是

It created 6 projects in the solution. Then I tried to update nugget packages for all of them. Needless to say the firs problem I encountered was the unnecessary reference to *design assemblies. I managed to corrected it.

然后,当我看到6个准备好更新的nuget软件包,其中5个用于Andriod,1个是Xamarin.Forms的较新版本时,我得到以下消息.

Then I got following message when I see 6 nuget packages are ready to update, 5 of them are for Andriod, and 1 is the newer version of Xamarin.Forms.

Unable to resolve dependencies. 'Xamarin.Android.Support.Design 23.2.1' is not compatible with 'Xamarin.Forms 2.1.0.6529 constraint: Xamarin.Android.Support.Design (= 23.0.1.3)'.

因此,当Xamarin发布新版本的软件包时,是否没有考虑它们之间的兼容性?

So when Xamarin published new version of packages, there was no consideration of the compatibility among them?

推荐答案

Xamarin Forms并不总是与最新版本的Google支持库兼容. Xamarin发布了它们,以便Android开发人员(不使用Forms)在需要时可以使用它们,但是Forms开发人员可以继续使用较早的兼容版本.

Xamarin Forms is not always compatible with the latest version of the Google Support libraries. Xamarin publishes them so Android developers (not using Forms) can utilize them if they need them, but Forms developers can continue to use the older, compatible versions.

这篇关于无法升级Xamarin.Android的nuget程序包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆