Google Maps API Key in release build doesn't work

Alexandre Daubois picture Alexandre Daubois · Aug 5, 2015 · Viewed 7.9k times · Source

I'm currently developing an application for Android and I'm using Google Maps API. In developer console, I added my SHA1 certificate print, followed by my package name. Even though I put this SHA1 certificate print using keytool, I can't access to the maps. I made lots of search, but every topics brought me to answers where error were in a wrong API Key in developer console. But I took the right SHA1, the one of my certificate.

Thanks in advance !

Answer

Noor Ali Butt picture Noor Ali Butt · Sep 26, 2017

My Map in release mode was showing but after I publish to Play Store it was not showing.

I had mentioned both debug and release certificate SHA-1 Key to Google Developer Console but map in release mode after downloading app from play store was still not showing.

Here' what was problem: Google Play App Signing is enabled for this app

Goto Release Management -> App Signing -> and copy the SHA-1 certificate fingerprint from App signing certificate

Paste this newly copied SHA-1 fingerprint to Developer Console and map in release mode will show.