Authenticating Your Client

Certain Google Play services (such as Google Sign-in and App Invites) require you to provide the SHA-1 of your signing certificate so we can create an OAuth2 client and API key for your app. To get your SHA-1, follow these instructions:

To get the debug certificate fingerprint:

Method 1:

Change your app configuration to Gradle project (signingReport) then click run button in Android Studio.
Android SHA-1
This process prints the fingerprint to the Run tab at the bottom.
Android SHA-1

Method 2:

Open a terminal and run the keytool utility provided with Java to get the SHA-1 fingerprint of the certificate.

Mac/Linux

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

Windows

keytool -list -v -keystore %USERPROFILE%/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

Android SHA-1

To get the release certificate fingerprint:

keytool -list -v -keystore <your_keystore_name> -alias <your_alias_name>

where:
<your_keystore_name> is the path and name of the Keystore, including the .keystore extension.
<your_alias_name> is the alias that you assigned to the certificate when you created it.

Learn How to create Android Release Key for your app.

Android SHA-1

Note: If you did not find keytool then set Environment variables for java installation (JDK) or you can open terminal inside C:\Program Files\Java\jdk1.8.0_121\bin