Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Google Maps API in Release not working

I have a read a dozen of questions and answers and also watched some YouTube Videos. But my Android App with Google Maps Release Version aint working.

What I have done until now:

  1. Get the SHA-1 Code (Yes, its the correct one)
  2. Register in Google Developer
  3. Create new Project
  4. Set in the SHA-1
  5. Set in the Package Name and Project (Yes, its the correct one)
  6. Get the key
  7. Set the key in google project under google_maps_key to String

The string is linked in the manifest file. But its still not working...! Any ideas?

like image 290
Ero Stefano Avatar asked Mar 11 '26 20:03

Ero Stefano


2 Answers

There are two different keys one for debug and another for release.

Use this link to generate the release SHA-1 key.

http://www.truiton.com/2015/04/obtaining-sha1-fingerprint-android-keystore/.

Here is the official documentation.

https://support.google.com/cloud/answer/6158862?hl=en#creating-android-api-keys

like image 120
Shaan_B Avatar answered Mar 14 '26 10:03

Shaan_B


When you try to release APK, Use SHA-1 of the KeyStore not default or current SHA-1 of WorkSpace.

Some developer uses testing API key for app which is generated for default keystore, but not it don't know for release version need to generate new API key accouding new SHA-1 of keystore.

So Generate New API key for releasing APK (KeyStore SHA-1).

like image 40
Attaullah Avatar answered Mar 14 '26 09:03

Attaullah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!