Firebase Google身份验证无法在发布模式下运行

时间:2018-01-25 09:26:16

标签: android firebase-authentication

我正在使用firebase身份验证在android工作室中构建应用程序...如何在发布模式下进行谷歌登录?它在调试模式下工作,但不在发布模式下工作。

1 个答案:

答案 0 :(得分:5)

我有类似的问题。它解决了:

  • 转到Google Play控制台
  • 版本管理 - > 应用签名
  • 应用签名证书
  • 中获取SHA-1
  • 在控制台firebase中更新SHA-1
  • 下载新文件google-services.json
  • 在您的应用中更新文件google-services.json
  • 制作新版本