Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google maps not show in release mode android

I have a problem with my google maps API. In debug mode it's working fine. But when in release mode i got blank maps. i have tried to change SHA1 from debug keystore to release keystore. any idea for my problem?

like image 964
Tamrin Imanuel Panggabean Avatar asked Mar 15 '16 05:03

Tamrin Imanuel Panggabean


2 Answers

Add the apikey to debug>res>values>google_maps_api.xml then add release>res>values>google_maps_api.xml.

Then check it work or not.

Maybe you have 2 google_maps_api.xml files, one in the app/src/debug/res/values folder and the other in the app/src/release/res/values folder, but only the debug one contains your API key.

like image 159
Govinda Paliwal Avatar answered Oct 03 '22 09:10

Govinda Paliwal


I had the same problem. There is problem with your key . Regenerate key and try.

like image 36
chetan Avatar answered Oct 03 '22 07:10

chetan