在Play商店发布后,Google登录无法使用 [英] Google sign in not working after publishing in play store

查看:499
本文介绍了在Play商店发布后,Google登录无法使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经历了

但是当我从游戏中安装应用商店我无法使用 google登录按钮登录。



我已经使用Firebase for google sign当我点击登录按钮时,选择帐户的选项即将到来,但它没有登录或做任何事情。



所以我可能在哪里解决方案

更新:Google更改了上传APK的行为,请检查下面的答案!



发布APK和调试APK有不同的SHA1和不同的API服务的API密钥。他们都必须在Firebase控制台 - >项目设置中添加。然后从这里下载 google-services.json ,使用选项Build signed APK将其添加到项目中并使用版本密钥存储库进行重新编译。这应该工作


I went through this, and as far as the process goes I did that.

But I when I installed the app from play store I am not able to sign in using the google sign in button.

I have used Firebase for google sign in. When I am clicking the sign in button the option to choose the account is coming but then it is not signing in or doing anything.

So where possibly am I going wrong?

解决方案

Update: Google changed behaviour of uploading APK, check answer below!

Release APK and debug APK has different SHA1 and different API keys for google services. Both of them must be added in Firebase Console -> Project settings. Then download google-services.json from here, add it to project and recompile with release keystore using option "Build signed APK". That should work

这篇关于在Play商店发布后,Google登录无法使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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