Android Studio only gives me SHA1, I need SHA256
There is a much simpler and updated method to find it, comes from this answer.
- Navigate to the Gradle tab at the right side of Android Studio.
- In the list, navigate to the app section and expand it.
- In the expanded list, navigate to the Tasks section and expand it.
- Again, in the expanded list, navigate to the android section and expand it.
- Double-click on signingReport, and find the SHA-256 Fingerprint at the Run box.
You will find your SHA-256 Fingerprint there.
As @quent commented, change your run configuration in the main toolbar to run the debug configuration again.
You can get SHA256
by using keytool
using command prompt (windows).
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
For Mac users:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
If you have any special characters in your password, you may need to wrap the password in single quotes.
Go to the root directory of the project from the terminal and run the below command
./gradlew signingReport
You will get SHA-1, SHA-256, and other details
You can get it from the Google Play Console (https://play.google.com/apps/publish). Follow these steps:
- Go to your project in GPC.
- Expand "Release Management".
- Go to "App signing".
- Navigate to "App signing certificate".
- Copy SHA-256 fingerprint.