I know that this question is a duplicate to the one in this link, But no one gave the right answer to that question till now, so I am asking it again: I created an app. I used the map activity offered by Android Studio templates. I created a new key to sign the app. I created api using the package name and fingerprint (SHA1) of the app. Then I made sure that I have an api key in the release version of google_maps_api.xml file. Then I generated signed APK using V2 (full apk signature), but the map is not showing in the signed apk when I install it on a real device. The map show only in the emulator or on a real device in debug mode, but never shows when I install the signed version of the app!!! Any help?
You need to create a Release key with your keystore file and password for Signed Apk
Then u have to add the key in developer console
Step 1
in command prompt:
keytool -list -v -keystore /home/rafsan/Desktop/Android/Projects/TestApp/keystore.jks -alias test -storepass password -keypass password
where
/home/rafsan/Desktop/Android/Projects/TestApp/keystore.jks
is the path where your keystore file for the signed apk is present
test
is the key alias name used while genrating the signed key store
and password
is the password used while signing the apk
Step 2
Go to Developer console
and add the release key with package
A3:33:EA:3D:5E:....................85;com.example.package_name