Try to design simple google map related application. App runs fine in debug mode but when i switch to release mode by recreating and changing the Google Map API Key by providing release SHA1 fingerprint and package name in App, also change the build type to release by providing proper config file.
But when i run an app get a following error
Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
API Key: Google Map API Key (with release SHA1 fingerprint)
Android Application (<cert_fingerprint>;<package_name>): Debug SHA1 fingerprint;com.mycompany.packagename
i am stuck here and not able to change the SHA1 fingerprint in App to release one. Please help me in resolving this issue.
Finally i figure out the problem. Signing during the build using GUI doesn't work. So for checking the release version you need to change the Gradle as follows and sync the project.
After checking the release version of App. Run "assemblerelease" and find the release apk in the following path \build\outputs\apk*release.apk
I think this solution works for others.
Thanks