I want to use Google Maps in my application, I have followed this tutorial to generate MD5 fingerprint of my eventappkey.keystore. But keytool generates SHA1 fingerprint instead of MD5, due to which I am unable to register for Google Api as google accepts MD5 fingerprint of keystore.
I have looked at other answers which suggest to use jdk1.6. But is there a better way so that I do not need to move to jdk1.6. Any suggestion would be greatly appreciated.
So, to get the SHA1 value from a production Keystore go to: Android Tools -> Export Signed Application Package . Follow the process for signing your apk and the SHA1 will showed as a certificate. Save this answer.
Open a terminal and run the keytool the utility provided with Java to get the SHA-1 fingerprint of the certificate. You should get both the release and debug certificate fingerprints.
This article at Wikipedia explains what a SHA1 Fingerprint is. In a nutshell it is a unique way to identify the connection that is being made to avoid any sort of possible incorrect connection, or additional security to ensure the connection is being made to the expected server.
If you add the -v (verbose) option to your command line, like
keytool -v -list -alias alias_name -keystore my-release-key.keystore
it should show you the MD5 fingerprint
If use android studio then use this method :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With