Reason for this issue
This occurred because there are different SHA1s 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
SHA1from 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
SHA1and your package name
Generate APK using keystore and enjoy your map