在我的Android Studio中构建Google登录后无法正常工作 [英] Google Sign In not working when built in my Android Studio

查看:113
本文介绍了在我的Android Studio中构建Google登录后无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

第三方为我的应用开发了主要结构,包括Google登录.当他们对其进行测试时,它就可以工作.当我运行他们构建的APK时,它可以工作.当我使用项目文件进行构建时,它失败并显示handleSignInResult:false错误.

A third-party has developed the main structure for my app, including a Google Sign In. When they test it, it works. When I run the APK that they built, it works. When I build using the project files, it fails with a handleSignInResult:false error.

我重新安装了Android Studio,安装了所有可能的SDK,但无济于事.有人知道为什么一个项目可以在一台计算机上成功构建而不是在我的计算机上成功构建吗?

I've reinstalled Android Studio, installed all the possible SDKs, but to no avail. Does anybody have any idea why one project will build successfully on one computer, but not on mine?

与SHA-1有关吗?

推荐答案

是的...您猜对了.它与SHA-1 Key有关.

Yes...You guessed it right.Its about SHA-1 Key.

您需要添加从PC密钥库生成的SHA-1密钥

You need to add you SHA-1 key generated from your PC keystore

如何从Android Studio获得SHA-1?

比在您的Firebase控制台或Google控制台中添加该密钥

Than add that key in your Firebase console or in Google Console

如何将SHA-1密钥添加到控制台?

这篇关于在我的Android Studio中构建Google登录后无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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