@ MaciejGórski is true. Below are some small details.
In the Google Api console, where we created the KEY API, we have the ability to add multiple fingerprints to the same key. What I did was add two SHA1 fingerprints for my debug keystore and free the keystore, and the same API key worked for me.
Please note: below for Ubuntu:
Get SHA1 for debugging using the following command
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
To get SHA1 for release, the command will change to
keytool -list -v -keystore /home/atul/Desktop/Learnings/Projects/TestApp/keystore.jks -alias test -storepass password -keypass password
Where
/home/atul/Desktop/Learnings/Projects/TestApp/keystore.jks is the path where my key file for signed apk is present
test is the key alias name used to generate the signed keystore
and password is the password used when signing apk
Hope this helps. Happy coding :)
source share