samyraj r
samyraj r

Reputation: 11

Getting an exception while running xamarin forms maps

uncaught exception : API key not found. Check that is in the element of AndroidManifest.xml

enter image description here

Upvotes: 0

Views: 50

Answers (1)

SushiHangover
SushiHangover

Reputation: 74144

To use the Google Maps functionality in Android, you need to register for a Maps API key with Google. Until you do this, you will just see a blank grid instead of a map in your applications. You must obtain a Google Maps Android API v2 key - keys from the older Google Maps Android API key v1 will not work. Obtaining a Maps API v2 key involves the following steps:

  • Retrieve the SHA-1 fingerprint of the keystore that is used to sign the application.
  • Create a project in the Google APIs console.
  • Obtaining the API key.

re: https://learn.microsoft.com/en-us/xamarin/android/platform/maps-and-location/maps/obtaining-a-google-maps-api-key?tabs=windows

Adding the Key to Your Project

re: https://learn.microsoft.com/en-us/xamarin/android/platform/maps-and-location/maps/obtaining-a-google-maps-api-key?tabs=windows#adding-the-key-to-your-project

Upvotes: 4

Related Questions