java.lang.IllegalArgumentException:已添加:Lcom/google/android/gms/iid/MessengerCompat [英] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/iid/MessengerCompat

查看:138
本文介绍了java.lang.IllegalArgumentException:已添加:Lcom/google/android/gms/iid/MessengerCompat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我已经在互联网上搜索了很多错误导致我的错误,他们都说图书馆已经被复制了.对于这种情况,我不确定哪个库,正在查看引用,没有发现重复,这就是引用内部的内容.

So I've searched a lot on the internet already on what the error is causing me, and they are all saying that a library has been duplicated. For this case I'm not sure which library, I'm looking at my references and seeing no duplicate this is what's inside my reference.

顺便说一句,我正在使用Visual Studio 2015社区,我的项目是Xamarin跨平台.

BTW I'm using Visual Studio 2015 Community and my project is Xamarin Cross-Platform.

推荐答案

添加此插件时,我遇到了相同的错误:

I came across the same error when adding this plugin : Xam.Plugin.PushNotification To resolve this error, what I did was : Remove the plugin and all its dependencies entirely, for me that meant removing Xamarin.GooglePlayServices.Gcm and Iid too.

然后我添加了Xamarin.GooglePlayServices.Iid版本32.961.0

Then I added Xamarin.GooglePlayServices.Iid version 32.961.0

然后我添加了Xamarin.GooglePlayServices.Gcm版本32.961.0

Then I added Xamarin.GooglePlayServices.Gcm version 32.961.0

然后我添加了Push插件.当前,似乎构建错误已消失.手指越过推送代码也将起作用.

Then I added the Push plugin. Currently it seems as if the build error has gone away. Fingers crossed the push code will work too.

这篇关于java.lang.IllegalArgumentException:已添加:Lcom/google/android/gms/iid/MessengerCompat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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