I have a google map in my app, but it is not working when I create a release signed app.
I tried everything what I've found here, with no luck.
I obtained the SHA1 fingerprint .\keytool -list -keystore C:\Users...signature.jks
It showed me the SHA1 fingerprint 98:EC:9D...
So in Google console under Maps SDK for Android I added my packagename and this fingerprint. I took the API key from there and put it in my app, into google_maps_api.xml, and in my Manifest I have this:
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />
I tested this with attached device and the debugger says:
Authorization failure.
E/Google Maps Android API: Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
API Key: AIzaSyD........
Android Application (<cert_fingerprint>;<package_name>): B7:06:CC:...;mypackage
So the map is not working, neither when I build the signed app.
As you can see, there is a total different fingerprint in the log, not sure from where.
Ok, so then I put that fingerprint (B7:06:CC...) to my Google console, and then the maps are working on my attached device without errors, BUT the map is not working when I create a signed APK!
Am I doing something wrong?