Firebase 身份验证因“开发人员错误"而失败将 apk 上传到 Google Play 商店后 [英] Firebase Authentication is failing with "Developer Error" after uploading apk to google play store

查看:26
本文介绍了Firebase 身份验证因“开发人员错误"而失败将 apk 上传到 Google Play 商店后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中使用 Firebase 身份验证对用户进行身份验证.

一切正常,直到我开始调试我的应用程序.但是当我在 Playstore 上传签名的 apk 时,我的用户身份验证服务总是失败并显示开发人员错误"消息.

在一些网络研究中,我发现我还需要为我签名的 apk 生成 SHA 证书.我已经用本地创建的.jks"文件生成了 SHA,我在上传之前用它在本地签署了我的应用程序.我已将生成的 SHA 密钥添加到 firebase 项目控制台并生成了新的 google-services.json 文件.即使这种方法对我也没有帮助.

我怀疑这是因为我正在使用Google Play App Signing (

I am using Firebase Authentication for authenticating user in my application.

Everything was working fine till I was working on debug build of my application. But the moment I have uploaded the signed apk in playstore, my user authentication service always fails with "Developer Error" message.

On some web research, I find out that I need to generate SHA certificate for my signed apk also. I have generated SHA with locally created ".jks" file, which I have used to sign my application locally before uploading. I have added the generated SHA keys to firebase project console and generated new google-services.json file. Even this approach has not helped me.

I am suspecting that this is happening because I am using "Google Play App Signing (https://developer.android.com/studio/publish/app-signing.html)" which is again changing the certificate. Can anyone please help me and let me know what is the right process for updating SHA keys for release apk.

If play store is doing the app-signing, then how can it be the part of "google-services.json" where SHA keys must be mentioned beforehand?

Please help!!!

解决方案

Open App signing section in Google Play Console, and get SHA1 of app signing certificate

这篇关于Firebase 身份验证因“开发人员错误"而失败将 apk 上传到 Google Play 商店后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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