how to get sha1 of android app in Vs code

后端 未结 4 1566
旧巷少年郎
旧巷少年郎 2021-02-08 05:06

how to get \"Sha1\" for a flutter application. I am using flutter in Vs code.In android studio we have direct option for that, but i don\'t know how to get it in Vs code.

4条回答
  •  无人共我
    2021-02-08 05:13

    1. Open a terminal window.

    2. Change the directory to the JDK bin directory, mine was jdk1.7.0_05 (could be different for you). cd

      C:\Program Files\Java\jdk1.7.0_05\bin
      
    3. Next we have to run the keytool.exe. Use the following line to get the Android SHA1 fingerprint. Windows:

      keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore"-alias androiddebugkey -storepass android -keypass android
      

      Mac and Linux:

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

提交回复
热议问题