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:
Change your app configuration to Gradle project (signingReport) then click run button in Android Studio.
This process prints the fingerprint to the Run tab at the bottom.
Open a terminal and run the
keytool utility provided with Java to get the SHA-1 fingerprint of the certificate.
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
keytool -list -v -keystore %USERPROFILE%/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
To get the release certificate fingerprint:
keytool -list -v -keystore <your_keystore_name> -alias <your_alias_name>
<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.
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