Xamarin.forms.googlemaps: build with Link All SDK Assemblies Fails

Created on 24 Apr 2017  路  5Comments  路  Source: amay077/Xamarin.Forms.GoogleMaps

BUG / PROBREM REPORT

SUMMARY

i get this error when i build with Link only SDK Assemblies

VERSIONS

  • Xamarin.Forms.GoogleMaps - 1.8.0
  • Xamarin.Forms - 2.3.4.231
  • *

PLATFORMS

  • [x] Android
  • [ ] iOS
  • [ ] UWP

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Error executing task LinkAssemblies: error XA2006: Could not resolve reference to 'System.Void Android.Gms.Maps.Model.Polygon::set_Holes(System.Collections.Generic.IList1<System.Collections.Generic.IList1>)' (defined in assembly 'Xamarin.Forms.GoogleMaps.Android, Version=1.8.0.7, Culture=neutral, PublicKeyToken=null') with scope 'Xamarin.GooglePlayServices.Maps, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. When the scope is different from the defining assembly, it usually means that the type is forwarded. (test.Droid)

bug

All 5 comments

Polygon::set_Holes is deleted in latest Xamarin.GooglePlayServices.Maps.

Please try downgrade Xamarin.Forms to 2.3.3- .

Could you try v1.8.2-beta1 ?

I tried in debug mode with link sdk assemblies only in works ok but in release mode with link sdk assemblies only i get this error :

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Error executing task LinkAssemblies: error XA2006: Could not resolve reference to 'Android.Gms.Maps.GoogleMap Android.Gms.Maps.MapView::get_Map()' (defined in assembly 'Xamarin.Forms.GoogleMaps.Android, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null') with scope 'Xamarin.GooglePlayServices.Maps, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. When the scope is different from the defining assembly, it usually means that the type is forwarded. (test.Droid)

I just released Xamarin.Forms.GoogleMaps 2.0.0-beta1.
This includes Xamarin.Forms 2.3.4+ and Xamarin.GooglePlayservices.Maps 42+ supports.
Could you try it?

Works like a charm, thank you very much !!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

galadril picture galadril  路  3Comments

LukasThijs picture LukasThijs  路  7Comments

hieumoscow picture hieumoscow  路  5Comments

goodguy010 picture goodguy010  路  5Comments

JKennedy24 picture JKennedy24  路  6Comments