我目前正在开发一个使用Android.Support.Design的项目,我刚刚添加了Xamarin.GooglePlayServices.Location。由于添加了后一个nuGet包,我有41个警告和98个错误,编译和构建不再有效。警告主要是以下类型:
Warning: Duplicate managed type found! Mappings between managed types and
Java types must be unique. First Type:
'Android.Support.V4.View.IOnApplyWindowInsetsListenerImplementor,
Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null'; Second Type:
'Android.Support.V4.View.IOnApplyWindowInsetsListenerImplementor,
Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null'.
虽然错误属于以下性质:
error: package com.google.android.gms.common.api.GoogleApiClient does not
exist com.google.android.gms.common.api.GoogleApiClient.OnConnectionFailedListener
(proj) javac
我真的迷失了这种情况以及我需要做些什么来让我的项目再次编译。任何帮助将不胜感激!