24

Before this update we can get SHA1 code from Gradle but now it's look like it's changed.

enter image description here

Nimantha
  • 6,405
  • 6
  • 28
  • 69
Krushal Virani
  • 251
  • 1
  • 2
  • 3

15 Answers15

80

Fixed this by doing this: Check here

  1. File
  2. Settings
  3. Experimental
  4. Unchecked the 'Do not build gradle task list during gradle sync' and click 'OK'
  5. Go to file
  6. Sync project with Gradle files
  7. You will see the option on Signing reports under: Gradle -> Tasks ->Android -> Signing Report.

8.Check the image below Here

bensalcie
  • 801
  • 5
  • 9
35

Option 1 :

1. Open Gradle window from the right side and click on Execute Gradle task icon.

enter image description here

2. Add signingreport beside the "gradle" and press Enter. enter image description here

Option 2 :

  • Open Terminal in android studio, type ./gradlew signingReport and press Enter.

enter image description here

Nikunj
  • 3,937
  • 19
  • 33
19

Try using this command line in AndroidStudio Terminal

./gradlew signingReport

14

Step 1: Click Execute Gradle task

enter image description here

Step 2: Type : "signingreport" and Enter

STA
  • 30,729
  • 8
  • 45
  • 59
Lokesh
  • 141
  • 1
  • 3
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

3

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.

enter image description here

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

enter image description here

Sana Ebadi
  • 6,656
  • 2
  • 44
  • 44
1

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

1
  1. Double shift
  2. You add 'gradle'
  3. You look for the option 'Sync Project with Gradle Files'
  4. Click on that option
  5. Enter the gradle section again and it will be generated

Greetings! :]

Example

BartGraphics.
  • 63
  • 1
  • 9
1

In my case instead of "./gradlew signingReport", "gradlew signingReport" solved my issue

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

Click on Double Shift on android studio

Enter "Run anything"

Now enter "gradlew signingReport"

Enter

shubomb
  • 672
  • 7
  • 20
0
  1. Open your project in Android Studio
  2. Click on Gradle tab on the right enter image description here
  3. Click on the elephant Execute gradle task enter image description here
  4. In the popup that appears, type signingreport enter image description here
  5. Wait and check the run tab. You will see the SHA1
Dario Brux
  • 1,871
  • 1
  • 17
  • 15
0

here

Double click it and you'll get your MD5, SHA, etc.

0

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:

Before     After

  • 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
0
  1. Click on the gradle. Top right on the Android Studio. ...
  2. Now click on icon as seen in below picture. A new searchable windows/screen will open.

enter image description here

  1. Now type,gradle signingreport and press Enter to start generating SHA KEY as seen in below picture.
  2. Your SHA Key will generate as seen in this picture.

enter image description here

#gradle #signingreport #android #java

☻♥ Done Keep Code.

-1

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

Abili Isaac
  • 574
  • 4
  • 5