在我的Android Studio中构建Google登录后无法正常工作 [英] Google Sign In not working when built in my Android Studio
问题描述
第三方为我的应用开发了主要结构,包括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
比在您的Firebase控制台或Google控制台中添加该密钥
Than add that key in your Firebase console or in Google Console
这篇关于在我的Android Studio中构建Google登录后无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!