问题描述
谷歌登入总是返回签出。它采用了Android工作室推设备上的应用程序时,总是失败。
Google signin is always returning signed-out. It always fails when pushing the app on the device using Android studio.
然而,当我安装签名应用它的作品。
However, when I install the signed app it works.
如何让谷歌登录作品,同时我们还在开发应用程序?
How can I make google sign in works while we are still developing the app?
推荐答案
在开发时,您可能正在使用调试密钥库:
At development time, you are probably using your debug key store:
获取SHA-1调试关键证书的:
Get the SHA-1 of your debug key cert:
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
和注册一起在开发者控制台的你的包名为好。 (每对需要一个注册)
And register it together your package name in developer console Credentials page as well. (Each pair requires one registration)
您可以参考这篇文章的回答的详细信息:
Occured一个INTERNAL_ERROR当requestEmail从GoogleSignInOptions的Android
You can refer to this post's answer for details:Occured an INTERNAL_ERROR when requestEmail from GoogleSignInOptions Android
或者请参阅下面的博文更多地了解OAuth用户端注册:
Or see below blogpost to understand more about OAuth clients registration:
的
这篇关于在开发阶段在Android测试谷歌登入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!