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

查看:26
本文介绍了无法升级 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 个项目.然后我尝试为所有这些更新 nugget 包.不用说我遇到的第一个问题是 对*设计程序集的不必要引用.我设法纠正了它.

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.

无法解析依赖项.Xamarin.Android.Support.Design 23.2.1"与Xamarin.Forms 2.1.0.6529 约束: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天全站免登陆