Before this update we can get SHA1 code from Gradle but now it's look like it's changed.
-
Yes it seems somethings off with Android 4.2 here – Keshav May 11 '21 at 05:24
-
1I tried this in 4.2 getting same error so I downgraded to 4.1.2 at sha1 in working just fine – Keshav May 11 '21 at 06:43
-
follow these steps [enter link description here](https://stackoverflow.com/a/76617495/12748481) – Surajkaran Meghwanshi Jul 05 '23 at 06:08
15 Answers
Fixed this by doing this: Check here
- File
- Settings
- Experimental
- Unchecked the 'Do not build gradle task list during gradle sync' and click 'OK'
- Go to file
- Sync project with Gradle files
- You will see the option on Signing reports under: Gradle -> Tasks ->Android -> Signing Report.

- 801
- 5
- 9
-
-
It shows the report user run tab on the android studio tray menus. As shown above, Scroll down, you will see MD5,SHA1,SHA-256 etc. – bensalcie Jun 28 '21 at 11:03
Option 1 :
1. Open Gradle
window from the right side and click on Execute Gradle task
icon.
2. Add signingreport
beside the "gradle
" and press Enter.
Option 2 :
- Open
Terminal
in android studio, type./gradlew signingReport
and press Enter.

- 3,937
- 19
- 33
Try using this command line in AndroidStudio Terminal
./gradlew signingReport

- 191
- 4
4.2 do not build gradle task by default.
you kan open it in file > settings > experimental, uncheck "do not build gradle task list during gradle sync", then sync project with gradle files

- 56
- 2
In Android Studio, go to Build menu -> Generate Signed Bundle / APK
Select your keystore and key alias.
Copy the key store path and the key alias.
Here, the path is /Users/technofreek/Documents/testkeystore
and the alias is key0.
Open terminal and type the command
keytool -list -v -keystore <your keystore path> -alias <your alias>
For this example, here’s the command
keytool -list -v -keystore /Users/technofreek/Documents/testkeystore -alias key0
This will print your SHA1

- 6,656
- 2
- 44
- 44
4.2 do not build gradle task by default. you kan open it in file > settings > experimental, uncheck "do not build gradle task list during gradle sync", then sync project with gradle files
yes its 100% working

- 11
- 1
- Double shift
- You add 'gradle'
- You look for the option 'Sync Project with Gradle Files'
- Click on that option
- Enter the gradle section again and it will be generated
Greetings! :]

- 63
- 1
- 9
In my case instead of "./gradlew signingReport", "gradlew signingReport" solved my issue

- 21
- 2
-
Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 24 '21 at 01:17
Click on Double Shift on android studio
Enter "Run anything"
Now enter "gradlew signingReport"
Enter

- 672
- 7
- 20
Another possible gotcha: make sure your Run output is visible. You may have to expand the Run output screen from right to left, like so:

- 1
- 1
-
Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Dec 17 '22 at 12:50
- Click on the gradle. Top right on the Android Studio. ...
- Now click on icon as seen in below picture. A new searchable windows/screen will open.
- Now type,gradle signingreport and press Enter to start generating SHA KEY as seen in below picture.
- Your SHA Key will generate as seen in this picture.
#gradle #signingreport #android #java
☻♥ Done Keep Code.

- 599
- 8
- 8
please goto Tools > firebase, the Assistant tab on your right will open and then choose what feature you want, either authentication, realTimeDatabase etc the click connect to firebase and firbase console will open from where you get to select your project from the list of projects and then it will connect automatically, everything is donw for you, i hope this helps
Thanks

- 574
- 4
- 5