简体   繁体   English

将apk上传到Google Play商店后,Firebase身份验证失败并显示“Developer Error”

[英]Firebase Authentication is failing with “Developer Error” after uploading apk to google play store

I am using Firebase Authentication for authenticating user in my application. 我正在使用Firebase身份验证来验证我的应用程序中的用户。

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. 但是,当我在playstore中上传已签名的apk时,我的用户身份验证服务始终会失败并显示“Developer Error”消息。

On some web research, I find out that I need to generate SHA certificate for my signed apk also. 在一些网络研究中,我发现我还需要为我签名的apk生成SHA证书。 I have generated SHA with locally created ".jks" file, which I have used to sign my application locally before uploading. 我用本地创建的“.jks”文件生成了SHA,我在上传之前用它在本地签名我的应用程序。 I have added the generated SHA keys to firebase project console and generated new google-services.json file. 我已将生成的SHA密钥添加到firebase项目控制台并生成新的google-services.json文件。 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. 我怀疑这种情况正在发生,因为我正在使用“Google Play App Signing( https://developer.android.com/studio/publish/app-signing.html )”,这又一次更改了证书。 Can anyone please help me and let me know what is the right process for updating SHA keys for release apk. 任何人都可以帮助我,让我知道什么是更新发布apk的SHA键的正确过程。

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? 如果Play商店正在进行应用程序签名,那么它如何才能成为“google-services.json”的一部分,其中必须事先提及SHA密钥?

Please help!!! 请帮忙!!!

Open App signing section in Google Play Console , and get SHA1 of app signing certificate Google Play控制台中打开应用程序签名部分,获取应用程序签名证书的 SHA1

控制台截图

if you are using local .jks file for signing, you dont need to google play app signing. 如果您使用本地.jks文件进行签名,则无需谷歌播放应用程序签名。 after adding your .jsk file's fingerprint into firebase console. 将.jsk文件的指纹添加到firebase控制台后。 just sync it in android studio or try to run the app on your phone first after that build a new signed apk. 只需在android studio中同步它,或者在构建新签名的apk后尝试在手机上运行应用程序。 Then upload it on playstore. 然后将其上传到Playstore。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM