android - 无法使用 Google Android 登录获取 API 异常 10

标签 android firebase firebase-authentication google-signin

我一直在尝试将 Firebase Google 登录集成到我的应用程序中,但我收到了 com.google.android.gms.common.api.ApiException: 10:

基于此Stack Overflow Question ,我什至尝试使用 WebClient 客户端 ID,但仍然出现相同的错误!

基于此Stack Overflow Question ,我已经输入了我的 Debug KeyStore SHA1、SHA256 并启用了 Google 登录

在 Android 方面,我已经关注了这个 Github Project

I have added SHA 1 and SHA256 of my debug keystore

我什至尝试使用此客户端 ID,但仍然出现相同的错误!
我哪里错了? I even tried with this CLient ID but still getting same error!

最佳答案

折腾了两天终于解决了。
您需要从 Google Play 管理中心信息中心添加 SHA。
转到发布管理->应用签名
在 firebase 控制台中添加此 SHA。

这仅适用于发布 apk 版本

更新:这是因为我在第一次上传应用程序时启用了 Google Play App Signing。 enter image description here

关于android - 无法使用 Google Android 登录获取 API 异常 10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48833351/

相关文章:

Android服务多线程和startForeground()

ios - 检查 Firebase/实时数据库的内容

firebase - 云Firestore : How is read calculated?

Firebase 模拟读取被拒绝

javascript - 需要一些登录表格的帮助

firebase - Firebase用户号显示为空

Android:枚举系统中所有唤醒锁

android - OSMdroid 添加自定义图标到 ItemizedOverlay

java - 如何遍历 R.java 类的 id 属性?

angular - Firebase 安全规则权限不足