Android Google SignIn not working in debug mode: GoogleSignInResult is false

后端 未结 6 946
我在风中等你
我在风中等你 2020-12-17 08:36

I have been following this tutorial to get Google SignOn going: https://developers.google.com/identity/sign-in/android/start-integrating

When I run my application lo

6条回答
  •  失恋的感觉
    2020-12-17 09:26

    EDITED

    The answer is derived from this, as it will applicable for this problem also

    I am Enclosing the Answer here

    The problem is due to the Signing Certificate and the SHA-1 certificate fingerprint. Add the following SHA-1 certificates into your googleApi credentials. there are 2 cases

    1.If you are running in debug mode add the SHA-1 fingerprint generated by the following

    "C:\Program Files\Java\jre1.8.0_101\bin\keytool" -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
    

    2.If you have configured Signing Config then use SHA-1 fingerprint generated by following

    "C:\Program Files\Java\jre1.8.0_101\bin\keytool" -list -v -keystore "[youKeyPath]\youKey.jks"
    

    I recommend you to add both the SHA-1 fingerprints in your googleApi credentials

提交回复
热议问题