官网:https://developers.google.com/identity/sign-in/android/start-integrating
基本按官网步骤进行,下面列举一些错误码。
错误码
code=7
NETWORK_ERROR,检查网络是否通畅(是否科学)
code=10
sha1 签名不对
如果已经设置过一遍,在设置的地方修改 sha1,最终的值不会改变,需要删除后重新添加才能生效。
在 consoler 中可以查看和删除生成的 key。
code=12500
A non-recoverable sign in failure occurred
在 OAuth 同意屏幕中,添加邮件地址: