无法使用Google Android登录获取API异常10 [英] Unable to Login With Google Android getting API Exception 10

查看:1665
本文介绍了无法使用Google Android登录获取API异常10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试将Firebase Google Login集成到我的应用程序中,但是却出现 com.google.android.gms.common.api.ApiException:10:

I have been trying to integrate Firebase Google Login in my app but I am getting com.google.android.gms.common.api.ApiException: 10:

基于此

Based on this Stack Overflow Question, I have even tried using WebClient Client ID but still getting the same error!

基于此堆栈溢出问题,我已经输入了调试密钥库SHA1,SHA256,并启用了Google登录

Based on this Stack Overflow Question, I have entered my Debug KeyStore SHA1, SHA256 and enabled Google Login

在Android方面,我遵循了

On Android Side, I have followed this Github Project

我什至尝试使用此客户端ID,但仍然收到相同的错误!
我要去哪里错了?

I even tried with this Client ID but still getting the same error!
Where am I going wrong?

推荐答案

经过两天的努力,我终于找到了解决方法.
您需要从Google Play控制台仪表板添加SHA.
转到发布管理->应用签名
在firebase控制台中添加此SHA.

这仅在发行版apk版本中有效

After struggling for two day I finally got the solution.
You need to add the SHA from your Google Play Console Dashboard.
Go to Release Management->App Signing
Add this SHA in firebase console.

This works only in release apk version

更新:这是因为我在首次上传应用程序时启用了Google Play应用程序签名.

Update: This is because I enabled Google Play App Signing while uploading the app for the first time.

这篇关于无法使用Google Android登录获取API异常10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆