Forum Xamarin.Android

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Duplicate managed type found , android.gms.maps.googlemap

OFKOFK USMember ✭✭
edited June 2013 in Xamarin.Android

Hi,

I Have succeeded to Integrate (at least compile) google map V2 by using following: http://blog.neteril.org/blog/2012/12/10/using-the-new-google-maps-with-mono-for-android/

However I can only compile in release mode. In debug mode I get the following problem:

Error 316 Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Gms.Maps.GoogleMap/IOnCameraChangeListenerImplementor, GoogleMapV2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Gms.Maps.GoogleMap/IOnCameraChangeListenerImplementor, GooglePlayServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 908 3 OndoDot_Android Error 317 Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Gms.Maps.GoogleMap/IOnInfoWindowClickListenerImplementor, GoogleMapV2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Gms.Maps.GoogleMap/IOnInfoWindowClickListenerImplementor, GooglePlayServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 908 3 OndoDot_Android Error 318 Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Gms.Maps.GoogleMap/IOnMapClickListenerImplementor, GoogleMapV2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Gms.Maps.GoogleMap/IOnMapClickListenerImplementor, GooglePlayServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 908 3 OndoDot_Android Error 319 Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Gms.Maps.GoogleMap/IOnMapLongClickListenerImplementor, GoogleMapV2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Gms.Maps.GoogleMap/IOnMapLongClickListenerImplementor, GooglePlayServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 908 3 OndoDot_Android Error 320 Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Gms.Maps.GoogleMap/IOnMarkerClickListenerImplementor, GoogleMapV2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Gms.Maps.GoogleMap/IOnMarkerClickListenerImplementor, GooglePlayServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 908 3 OndoDot_Android Error 321 Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Gms.Maps.GoogleMap/IOnMarkerDragListenerImplementor, GoogleMapV2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Gms.Maps.GoogleMap/IOnMarkerDragListenerImplementor, GooglePlayServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 908 3 OndoDot_Android Error 322 Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Gms.Maps.GoogleMap/IOnMyLocationChangeListenerImplementor, GoogleMapV2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Gms.Maps.GoogleMap/IOnMyLocationChangeListenerImplementor, GooglePlayServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 908 3 OndoDot_Android Error 323 Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Gms.Maps.ILocationSourceOnLocationChangedListenerImplementor, GoogleMapV2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Gms.Maps.ILocationSourceOnLocationChangedListenerImplementor, GooglePlayServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 908 3 OndoDot_Android

I use Metadata file from Google map demo V2.

I have tried with both Debug Android key and Release Key

/Ole

Posts

  • OFKOFK USMember ✭✭

    Resolved. Linking options was wrong in VS

Sign In or Register to comment.