1 fingerprint of keystore certificate

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

Windows命令提示符运行keytool.exe

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


Follow this tutorial for creating SHA1 fingerprint for Google Map v2

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:UsersMGDesktoptest.jks -alias test

If you are using android studio use simple step

  • Run your project
  • Click on Gradle menu
  • Expand Gradle Tasks tree
  • Double click on android -> signingReport and see the magic
  • It will tell you everything on the Run tab
  • 在这里输入图像描述

    Result Under Run Tab If Android Studio < 2.2
    在这里输入图像描述

    From android studio 2.2
    Result will be available under Run console but use highlighted toggle button

    在这里输入图像描述

    Or
    Second Way is
    Create new project in android studio New -> Google Maps Activity

    在这里输入图像描述

    then open google_maps_api.xml xml file as shown in pics you will see your SHA key

    在这里输入图像描述


    Easiest way for getting SHA1 Key in android studio both (Debug and release Mode)

  • Open Android Studio
  • Open Your Project
  • Click on Gradle (From Right Side Panel , you will see Gradle Bar )
  • Click on Refresh (Click on Refresh from Gradle Bar , you will see List Gradle scripts of your Project)
  • Click on Your Project (Your Project Name form List)
  • Click on Tasks/Android
  • Double Click on signingReport (You will get SHA1 and MD5 in Run Bar)
  • If you are using new Android Studio it shows time to execute on top there is Toggle task execution mode click on that you will get you SHA-1 key. Check 2nd and 3rd reference images.

    检查图像的细节在这里输入图像描述在这里输入图像描述

    Generate SHA-1 for Release Mode

    1-First add keystore config in your gradle How to add config in gradle.

    2-After Adding Config in gradle change build variant. 在这里输入图像描述

    3-Then Follow Above Procedure you will get SHA-1 for release mode.

    4-Check Image. 在这里输入图像描述

    链接地址: http://www.djcxy.com/p/81602.html

    上一篇: 更改API级别的Android Studio

    下一篇: 密钥库证书的1个指纹