Android Google Maps release with other api key does not shows

I have some issue that I have been searching without solution. I had have an app with Google Maps working well, but I deleted the project on console.developers.google.com by mistake, then the app stops to show the map.

I created another project on the console, I generated other api key with Google Maps for Android enabled. Then I changed my google_maps_api.xml value, I cleaned the project, then re-build and created a signed apk, but when install the app the maps not shows it.

I already tried this:

Upvotes: 1

Views: 37

Answers (1)

Trần Hiếu
Trần Hiếu

Reputation: 924

You just declare your google map API key in the debug mode. There is one more google_map_api.xml file in the release folder. It should be like this, just copy/paste your api key.

enter image description here

P/s: Don't forget to switch your Build Variants to release before build signed apk

Upvotes: 1

Related Questions