Google SignIn在发行模式下无法正常工作apk android [英] google signIn not working in release mode apk android

查看:145
本文介绍了Google SignIn在发行模式下无法正常工作apk android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在发布模式下,我的Google登录无法正常工作,但在调试模式下可以正常工作.我在此处,但我没有完美的解决方案.

In release mode, my google sign in is not working, but it works fine in debug mode. I got similar question from SO here, but I didn't get perfect solutions.

我的handleSignInResult即将出现false-如何解决?

My handleSignInResult is coming false - How can this be fixed?

推荐答案

请确保您遵循.如有需要,请创建一个新的OAuth客户端,新的配置文件(google-services.json)文件,并逐步进行所有操作.

. If need be, create a new OAuth Client, new configuration file (the google-services.json) file and do everything step-by-step.

还尝试添加提供相同凭据的Web客户端. 对于Android和Web客户端,同时提供SHA1进行调试以及发布密钥库. 在Android Studio的最左侧,您会看到一个标签:"Build Variants".在此处选择发布模式,然后执行所有操作.

Also try adding a Web Client giving the same credentials. And for Android as well as Web client give both the SHA1 for debug as well as the release keystores. In Android Studio, at extreme left you will see a tab saying "Build Variants". Select the release mode there and do everything after that.

这篇关于Google SignIn在发行模式下无法正常工作apk android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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