Reputation: 6128
Hi I am using google maps API, and I am having issues while creating a release APK. but Map is working fine in debug build. I created API key for release by following this link. First I got SHA1 key by typing in terminal keytool -list -v -keystore your_keystore_name -alias your_alias_name
. Using this key I created An API key from Google Developer Console for android. Is there anything I am doing wrong. Please help me.
Upvotes: 1
Views: 1778
Reputation: 6128
I got the solution. I was adding API key at wrong location. I added release API key
inside src/debug/res/values/google_maps_api.xml
mistakenly. When I copied it to src/release/res/values/google_maps_api.xml
it worked.
Upvotes: 11