Google Maps Android API: Authorization failure. Ensure that the "Google Maps Android API v2" is enabled. Ensure that the following Android Key exists

google search
google account
google chrome
google mail
google products
google slides
google software
google gravity

I am getting this error:

E/Google Maps Android API: Authorization failure.  Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.
E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)
Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
    API Key: [The key...]
    Android Application (<cert_fingerprint>;<package_name>):

Instead of the map working correctly, this is what I see:

In my app/build.gradle, I have this:

implementation 'com.google.android.gms:play-services-base:16.1.0'
implementation 'com.google.android.gms:play-services-analytics:16.0.8'
implementation 'com.google.android.gms:play-services-awareness:16.0.0'
implementation 'com.google.android.gms:play-services-cast:16.2.0'
implementation 'com.google.android.gms:play-services-gcm:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'

play-services-location is what I need for the Google Maps, correct? I was looking at the list at https://developers.google.com/android/guides/setup and I assume that Google Location and Activity Recognition - com.google.android.gms:play-services-location:16.0.0 is what I need for Google Maps. Is this correct?

UPDATE 1: I already have Maps SDK for Android enabled:

The error says: Ensure that the "Google Maps Android API v2" is enabled.. Is it referring to the Maps SDK for Android that I am showing in the screenshot in this UPDATE 1?

UPDATE 2: I have Maps SDK for Android enabled:

When I click the MANAGE button, I can go to the section to configure credentials that I showed in UPDATE 1.

UPDATE 3: I see the Map displayed correctly on all versions of Android on the Emulator. But on physical devices, the map never shows up. I see the Google logo and the red balloon, but now the map when I run the app on physical phones. Only on the Emulator everything works. Any ideas why?

UPDATE 4: See my solution at https://stackoverflow.com/a/56307654/4242086.


Hey I had the same problem today!,I solved it very easy for first you have to go https://console.developers.google.com and enable the android SDK maps and then create the api key, return in xamarin go to your manifest and add the google maps api key

https://docs.microsoft.com/it-it/xamarin/android/platform/maps-and-location/maps/obtaining-a-google-maps-api-key?tabs=windows

This is the documentation (I typed this fast because am on mobile now sorry)

Warning Issued For Millions Of Google Gmail Users, [Update: Official] Pixel 3a is now ‘out of stock’ on the US Google Store Google allows users to search the Web for images, news, products, video, and other content.


follow to below link for generate google api key:- https://developers.google.com/maps/documentation/android-sdk/map-with-marker

Android Code Reference Link:-

https://www.zoftino.com/android-mapview-tutorial

[Update: Official] Pixel 3a is now ‘out of stock’ on the US Google Store, Just say “Add tomatoes to my shopping list” and items will be saved and synced across your devices. When it's time to shop, access your list through Google Keep. Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.


I got the exact same symptoms when I moved the project to a new computer. My solution was to generate a new key based on the error message. The google_maps_api.xml file had an URL in a comment to generate key but that is a static thing, so after moving the project to a new computer I rewrote the URL to match the error message's version.

https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=[put-the-thing-here]

Generated the key, put it in the XML file and it worked well.

Google discontinues the Pixel 3A and 3A XL, Discover all the latest about our products, technology, and Google culture on our official blog. google's best audiobooks of 2019. npr's favorite books of the year. indie bestseller. goodreads choice award winner: best memoir & autobiography.


I followed this tutorial and I was able to fix it: https://www.youtube.com/watch?v=sJBlQv6IptQ. The video makes references to this tutorial: http://ramsandroid4all.blogspot.com/2016/01/google-maps-android-example-in-android.html.

In my case, what I did was to create a new project at https://console.developers.google.com/. I used Android apps for Application restrictions:

For the Restrict usage to your Android apps section, I had to provide a Package name and a SHA-1 certificate fingerprint. The Package name was in my app/build.gradle, specifically here:

applicationId "[my package name]"

The SHA-1 certificate fingerprint I found it from Android Studio by running signingReport:

The result included something like this:

Alias: AndroidDebugKey
MD5: [The value]
SHA1: [The value]
SHA-256: [The value]
Valid until: Wednesday, May 5, 2049
----------

BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
16:31:44: Task execution finished 'signingReport'.

Now the map works correctly in my Android app:

UPDATE 1: To my surprise, the maps were working correctly only on the Android Studio Emulator but not on real Android physical devices. The solution was what I posted at https://stackoverflow.com/a/56307654/4242086.

Browse All of Google's Products & Services, Experience the world of Google on our official YouTube channel. Watch videos about our products, technology, company happenings and more. Subscribe to  Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations. All of your discussions in one place Organize with favorites and folders, choose to follow along via email, and quickly find unread posts.


For those who still haven't figured it out yet, again take a look at the logging below the error message. Pay close attention to your certifcate_fingerprint and package_name printed out in the logging. Compare these diligently with the ones specified in your Google Development Console.

I picked up an old hobby project again after almost an entire year of inactivity. I probably changed something somewhere that triggered a change of the certificate fingerprint, or visa versa.

Hope this helps!

The Keyword, Find your place online with a domain from Google, powered by Google reliability, security and performance. with at least one of the words. without the words. where my words occur


Google, Uncover the latest marketing research and digital trends with data reports, guides​, infographics, and articles from Think with Google. Create and edit web-based documents, spreadsheets, and presentations. Store documents online and access them from any computer.


Google Domains, Google LLC is an United States based multinational technology company that specializes in Internet-related services and products, which include online  Continue your browsing experience from desktop to phone on Chrome.


Think with Google, This isn't a comprehensive history of Google's past 20 years. But it is an approximation of the company's biggest product launches, legal