androidgoogle-mapsgoogle-plussha1android-keystore

SHA-1 fingerprint of keystore certificate


Is the method for getting an SHA-1 fingerprint the same as the method of getting the fingerprint? Previously, I was running this command:

Windows Command Prompt running keytool.exe

It's not clear to me if the result I'm getting is the SHA-1 fingerprint. Can somebody clarify this?


Solution

  • Follow this tutorial for creating SHA1 fingerprint for Google Map v2

    For Debug mode:

    keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android 
    

    for Release mode:

    keytool -list -v -keystore {keystore_name} -alias {alias_name}
    

    example:

    keytool -list -v -keystore C:\Users\MG\Desktop\test.jks -alias test
    

    On windows, when keytool command is not found, Go to your installed JDK Directory e.g. <YourJDKPath>\Java\jdk1.8.0_231\bin\, open command line and try the above commands for debug/release mode.

    Another way of getting your SHA1 OR SHA-256 use ./gradlew signingReport

    For more detailed info visit Using Gradle's Signing Report