添加Xamarin插件时出错 [英] Error while adding Xamarin plugin
问题描述
我在Visual Studio 2015中使用Xamarin Forms.在尝试添加消息传递插件时收到此错误.
I'm using Xamarin Forms with Visual Studio 2015. I get this error while I'm trying to add a messaging plugin.
严重性代码描述项目文件行抑制状态 错误无法解决依赖关系. 'Xamarin.Android.Support.v4 23.0.1.3'与'Xamarin.Android.Support.Design 23.0.1.3约束不兼容:Xamarin.Android.Support.v4(> = 23.0.1.3)','Xamarin.Forms 2.2 .0.45约束:Xamarin.Android.Support.v4(= 23.3.0)". 0
Severity Code Description Project File Line Suppression State Error Unable to resolve dependencies. 'Xamarin.Android.Support.v4 23.0.1.3' is not compatible with 'Xamarin.Android.Support.Design 23.0.1.3 constraint: Xamarin.Android.Support.v4 (>= 23.0.1.3)', 'Xamarin.Forms 2.2.0.45 constraint: Xamarin.Android.Support.v4 (= 23.3.0)'. 0
我已经更新了Visual Studio和Xamarin,但仍然收到此错误.
我该怎么办才能解决此错误?
I have already updated Visual Studio and Xamarin, but still get this error.
What else should I do to fix this error?
推荐答案
这是一个依赖性问题.对于 Xamarin.Forms 2.2.0.45 ,依赖项是
This is a dependency issue. For Xamarin.Forms 2.2.0.45, the dependencies are
- Xamarin.Android.Support.v4(= 23.3.0)
- Xamarin.Android.Support.Design(= 23.3.0)
- Xamarin.Android.Support.v7.AppCompat(= 23.3.0)
- Xamarin.Android.Support.v7.CardView(= 23.3.0)
- Xamarin.Android.Support.v7.MediaRouter(= 23.3.0)
以上内容与错误之间的注释版本冲突:'Xamarin.Android.Support.v4 23.0.1.3' is not compatible with 'Xamarin.Android.Support.Design 23.0.1.3 constraint: Xamarin.Android.Support.v4 (>= 23.0.1.3)'
Note version conflict between the above and the error: 'Xamarin.Android.Support.v4 23.0.1.3' is not compatible with 'Xamarin.Android.Support.Design 23.0.1.3 constraint: Xamarin.Android.Support.v4 (>= 23.0.1.3)'
您将需要安装要使用的兼容消息传递插件版本.这是相关的疑难解答指南: https://developer.xamarin.com/guides/xamarin-forms/troubleshooting/.
You will need to install the compatible version of the messaging plugin you’d like to use. Here is a related troubleshooting guide: https://developer.xamarin.com/guides/xamarin-forms/troubleshooting/.
这篇关于添加Xamarin插件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!