Firebase Google身份验证在发布模式下不起作用 [英] Firebase google authentication not working in release mode
本文介绍了Firebase Google身份验证在发布模式下不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Firebase身份验证在Android Studio中构建应用程序...如何在发布模式下使用Google登录?它可以在调试模式下工作,但不能在发布模式下工作.
I am building an app in the android studio using firebase authentication...how do I google login in release mode? It works in debug mode but not in release mode.
推荐答案
我遇到了类似的问题.并通过以下方式解决:
I had a similar issue. And it resolve by:
- 转到Google Play控制台
- 在发布管理-> 应用签名 中
- 在应用签名证书 中获取SHA-1
- 在控制台Firebase中更新您的SHA-1
- 下载新文件google-services.json
- 在您的应用中更新文件google-services.json
- 创建新版本
这篇关于Firebase Google身份验证在发布模式下不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文