Reason for this issue
This occurred because there are different SHA1
s in debug
and release
types.
Fix for this issue
Add the SHA1
of the keystore used to build the release
APK
to Google console
Steps:
Get the path of the keystore when you generate signed APK
Build ----> Generate Signed APK..
Save the key store path
Remember to make Build Type --- release
- Extract
SHA1
from the keystore.
Open your terminal use command below:
keytool -list -v -keystore "/Users/NT/Desktop/generalkey.jks"
You will be asked for password for your keystore.
Change path to your keystore path keytool -list -v -keystore "keystore path"
From the Certificate fingerprints, you will see the SHA1
- Generate android key using this
SHA1
and your package name
Generate APK using keystore and enjoy your map
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…