Skip to content Skip to sidebar Skip to footer

Error Generating Certificate Sha-1

I'm trying to integrate my app with the Google API. For this you need to provide the sha-1 of the signing certificate. At the command prompt, I use the following command provided b

Solution 1:

For SHA1 Debug Key , run below command in android studio terminal.

Mac/Linux :

 keytool -exportcert -list -v \
-alias androiddebugkey -keystore ~/.android/debug.keystore

Windows :

 keytool -exportcert -list -v \
-alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore

Replace the %USERPROFILE% with your user path .

The Password is default : android

Solution 2:

You can generate the SHA-1 key from the studio itself, without using the terminal like this :

  • Click on gradle placed at right side of the studio

  • Click on refreshAllGradleProjects button

  • go to app

  • android

  • doble click on signingReport

SHA-1 key will be generated.

Post a Comment for "Error Generating Certificate Sha-1"