SHA-1 android app code example
Example 1: how to get sha 1 in android studio
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Example 2: SHA-1 android app
To get SHA-1 fingerprint in Android Studio:
1. Run your project
2. Expand Gradle (Top right)
3. Navigate to (App Name) ->Tasks -> android -> signingReport
4. Double click on signingReport
5. Open Run (at the bottom) and look for SHA-1 fingerprint
On expanding Gradle, If Tasks is missing:
Go to File -> Settings -> Experimental
Uncheck "Donot build Gradle Task list during Gradle sync"checkbox.
Apply Changes then go toFile -> Invalidate Caches / Restart.