简体   繁体   English

Flutter Google 登录不工作平台异常

[英]Flutter Google Sign-In not working platformexception

Google sign-in not working on real device (release mode) but working on emulator. Google 登录不适用于真实设备(发布模式),但适用于模拟器。 I did all related settings like SHA-1 Keys, support email, enabled google authentications etc.我做了所有相关设置,如 SHA-1 密钥、支持电子邮件、启用谷歌身份验证等。

I am getting a strange error我收到一个奇怪的错误

I/flutter ( 2385): PlatformException(sign_in_failed, g1.b: 10: , null, null) I/flutter (2385): PlatformException(sign_in_failed, g1.b: 10:, null, null)

Please help me with this.请帮我解决一下这个。 I am stuck with this almost 2 days.我坚持了将近 2 天。

Got it guys.知道了伙计们。 If app is not working in release mode you need to copy the SHA-1 Keys from Play store account to firebase.如果应用在发布模式下无法运行,您需要将 SHA-1 密钥从 Play 商店帐户复制到 firebase。

在此处输入图像描述

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

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