Google登录无法在已发布的应用程序上运行

问题描述:

  • THIS 没有不能解决我的问题

  • THIS didn't solve my problem

THIS 没有不能解决我的问题

THIS didn't solve my problem

对我来说没有任何意义,但似乎也无法解决我的问题.

THIS didn't make any sense to me but doesn't seem to fix my problem anyway.

因此,我已经在PlayStore上发布了我的应用,而Google登录无法正常工作. 我尝试用调试程序运行我的应用程序并发布sha1,这给了我ApiException:12500:

So, I've release my app on the PlayStore and the google sign in doesn't work. I've tried to run my app with the debug and release sha1, and that got me an ApiException: 12500:

经过2个小时的研究,我认为我必须使用Google Play登录SHA-1.我做到了,现在我得到了ApiException:10:至少是一些进步.

After like 2 hours of research I figured I had to use the Google Play Signin SHA-1. I did, now I get an ApiException: 10:, at least that's some progress.

但是我被困住了. 据我所知,ApiException 10是SHA或客户端ID问题. 既然我现在使用Play的SHA(在Firebase控制台中,我具有发布和播放sha-1以及更新的services.json,添加调试sha才使我回到apiexception 12500),这不会成为SHA问题.

But there I am stuck. As my knowledge goes, the ApiException 10 is either a SHA or client Id problem. It can't be a SHA problem since I now use Play's SHA (In the firebase console I have the release and play sha-1 and updated services.json, adding the debug sha just brings me back to apiexception 12500).

所以我认为并且仍然认为问题出在我的客户ID但 使用default_web_client_id不起作用.从Google服务提取的两个SHA的两个客户端ID均无效.我在Google Developers Console中创建的客户端ID无法使用.

So I thought and still think the problem is my client Id BUT Using the default_web_client_id doesn't work. Both client ID's for both SHA's extracted from google-services don't work. The client Id I created in Google Developers Console won't work.

所以,我求你帮助我了解我所缺少的. 谢谢.

So I'm begging you to help me understand what I'm missing. Thanks.

我首先尝试的内容:

我想通过此错误ApiException:12500很长时间.我尝试了一切:

What I tried first :

I want through this error ApiException: 12500 for a long time. I tried everthing :

  • 删除我的debugkeystore,重新创建一个
  • 在Firebase控制台上添加支持电子邮件
  • 更改插件的版本
  • 在我的设备上更新google

但是当我浏览*时,我找到了一个解决方案:

But when I was browsing *, I found a solution :

我转到了此页面( https://console.developers.google.com/apis /凭据) 不要忘记在列表中选择您的项目(左上方).然后进入"Oauth同意屏幕"

I went to this page (https://console.developers.google.com/apis/credentials) Do not forget to select your project on the list (top left). Then go on "Oauth consent screen"

我几乎填写了所有字段:应用程序徽标,电子邮件支持,应用程序主页链接,应用程序隐私策略链接(以及project.firebaseapp.com);并且我保存了.

I filled almost all the fields : the application logo, the email support, the application homepage link, application privacy policy link (with the project.firebaseapp.com); and I saved.

现在可以使用了,我可以登录.

Now it's working, I can login.

希望这会有所帮助

感谢Pranjal Gupta的回答: Google登录错误12500

Thanks to answer of Pranjal Gupta : Google Sign In error 12500