close

How to Generate SHA-1 for Flutter app? 3 Method Explained

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?

  1. Go to the project folder in the terminal.
  2. If you are using Window then run keytool -list -v -keystore “\.android\debug.keystore” -alias androiddebugkey -storepass android -keypass android
  3. If you are using Mac then run keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
  4. And if you are on linux just run keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
  5. 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

  1. 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

  2. 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.

Also Check Out Below Tutorials

Leave a Comment

%d bloggers like this: