I'm trying to generate a SHA-1 for a Flutter app, for Android studio to support Google Sign in, but I don't know how to do that, I saw some posts that indicate to run a command, but there I need a jks file I guess, and flutter doesn't create that.
Could someone help me?
How get Release and Debug keys: one more the easiest way (May 2019). All actions are inside Android Studio.
I partially agree with Rishab answer, but what we can do is
Navigate to Android folder inside project, there is gradlew file. so we can use this like :
in Mac
in my case i use it like :
Project Architecture is :
There are many ways you can do this, this is the easiest way I found.
Step 1: Open Project in Android Studio.
Step 2: Step 3: Find your SHA1 key in the signing report below in your android studio.
Hope it helped you..!
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
change user name in path
you can do the same on VSCode, open the folder that contain gradlew for linux and gradlew.bat for windows and run ./gradlew signingReport for linux and run gradlew signingReport for windows
You can generate it even from terminal. Following is for the release mode:
example :