androidfirebaseflutter

how to get sha1 of android app in Vs code


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.


Solution

    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