How to add Google.play.services.maps for using map ?

Hi everyone !

When I wanted to use maps in my application, I applied this documentation;

Everything on the ios side works very nicely. But I can't install it on android side because Visual Studio won't let me install google.play.services.maps in the nuget package manager.

How can i solve it ?

Please Help !!!

Tagged:

Best Answer

Answers

  • LeonLuLeonLu Member, Xamarin Team Xamurai
    edited September 11

    @Hamittirpan If you get the following error when you install this nuget Package?

    Error NU1202 Package Xamarin.GooglePlayServices.Maps 71.1610.0 is not compatible with monoandroid81 (MonoAndroid,Version=v8.1). Package Xamarin.GooglePlayServices.Maps 71.1610.0 supports: monoandroid90 (MonoAndroid,Version=v9.0) GoogleMapForA C:\Users\source\repos\GoogleMapForA\GoogleMapForA\GoogleMapForA.csproj

    If so, you should update your all of the nuget packages in the Android folders to the latest. I upload the
    Xamarin.Android.Support.Design to 28.0.0.1, then I can install it like following screenshot.

    Becuase this nuget packages have this Dependencies/

    If you did not get the above error message, please post your error message.

    Note, If your project is Xamarin forms, It seems that you should use Xamarin.Forms Map
    https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/map

Sign In or Register to comment.