Hello guys how are you all? hope you all are fine. When you are using firebase service Or Facebook login or anything else you need to add SHA-1 there. Here in this tutorial, we are going to learn How to Generate SHA-1 for Flutter app?
How to Generate SHA-1 for Flutter app?
Method 1 : Using Android Stuio
- First Of all Go to File > Open And then select your flutter Or React native android folder in new window.

- Then It will take some time. then click on Gradle Scripts and you will see signReport there. Just click on that and as you can see the below image. You will get your SHA-1

- Now you can use that SHA-1 where you want to paste.
Method 2 : Using Command Line
How to Generate SHA-1 by Using Command Line?
- Go to the project folder in the terminal.
- If you are using Window then run keytool -list -v -keystore “\.android\debug.keystore” -alias androiddebugkey -storepass android -keypass android
- If you are using Mac then run keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
- And if you are on linux just run keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
- Thats it. You will get SHA-1 In your terminal.
Method 3 : Using Directory
You won’t find a gradle window view in flutter project, so here is a solution for that.. In command prompt navigate to bin folder of jdk and run this command
keytool -list -v -keystore "C:\Users\yourusernamehere\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Faq
- How to Generate SHA-1 for Flutter app?
To Generate SHA-1 for Flutter app In command prompt navigate to the bin folder of JDK and run this command keytool -list -v -keystore “C:\Users\yourusernamehere.android\debug.keystore” -alias androiddebugkey -storepass android -keypass android
- Generate SHA-1 for Flutter app
To Generate SHA-1 for Flutter app In command prompt navigate to the bin folder of JDK and run this command keytool -list -v -keystore “C:\Users\yourusernamehere.android\debug.keystore” -alias androiddebugkey -storepass android -keypass android
Summery
So, It’s All About How to Generate SHA-1 for Flutter app?. I hope this tutorial helps you to solve your error. Please Comment Below if You stucks anywhere with my code.
Leave a Reply