amay077 / Xamarin.Forms.GoogleMaps

Map library for Xamarin.Forms using Google maps API
https://www.nuget.org/packages/Xamarin.Forms.GoogleMaps/
MIT License
544 stars 344 forks source link

Error on Provide APIKey with Xamarin.Forms.GoogleMaps - 3.3.0 #787

Closed linda-dge closed 1 year ago

linda-dge commented 2 years ago

VERSIONS

PLATFORMS

ACTUAL BEHAVIOR

Upon Compiling

error MT2101: Can't resolve the reference 'System.Boolean Google.Maps.MapServices::ProvideAPIKey(System.String)', referenced from the method 'System.Void Xamarin.FormsGoogleMaps::Init(System.String,Xamarin.Forms.GoogleMaps.iOS.PlatformConfig)' in 'Google.Maps, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

ACTUAL SCREENSHOTS/STACKTRACE

EXPECTED BEHAVIOR

I expect the project to compile.

HOW TO REPRODUCE

Tried ⦁ Clean Nuget Cache ⦁ Delete bin and obj Folders ⦁ Clean Solution ⦁ Deployment >10 (I have tried all the way up to 15)

I did find an old issue (https://github.com/amay077/Xamarin.Forms.GoogleMaps/issues/666) and have tried everything in there. I simply cannot build.

linda-dge commented 2 years ago

I finally got this to build with

Downgrading Xamarin.Forms and Xamarin.Google.iOS.Maps did the trick.

eolverabea commented 2 years ago

I finally got this to build with

  • Xamarin.Forms - 5.0.0.2337
  • Xamarin.Forms.GoogleMaps - 3.3.0
  • Xamarin.Build.Download - 0.11.1
  • Xamarin.Google.iOS.Maps - 3.9.0

Downgrading Xamarin.Forms and Xamarin.Google.iOS.Maps did the trick.

This only works in debug in relese it does not show the maps, do you have any suggestions ?

linda-dge commented 2 years ago

I finally had to open up my google maps api key and not restrict by the application name.

eolverabea commented 2 years ago

I finally had to open up my google maps api key and not restrict by the application name.

Even without restricting the API usage it does not show the maps, thanks for your suggestion.

amay077 commented 1 year ago

Hi @linda-dge , I deployed v5.0.0 to nuget. Could you try it?

https://github.com/amay077/Xamarin.Forms.GoogleMaps/issues/783#issuecomment-1232771417