【问题标题】:Firebase auth returning "getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@7f42afc"Firebase 身份验证返回“getGoogleApiForMethod() 返回 Gms:com.google.firebase.auth.api.internal.zzal@7f42afc”
【发布时间】:2019-04-09 21:15:15
【问题描述】:

我有一个使用 firebase 身份验证的颤振应用程序。今天我不得不杀死一个飞镖进程,从那时起,当我尝试登录或创建用户时,它返回 getGoogleApiForMethod() 返回 Gms: com.google.firebase.auth.api.internal.zzal@7f42afc 并且没有创建(或检索)用户。

我已经运行了flutter clean,但这只是让它工作了一次。 我的系统是 linux mint 19.1。

颤振医生

[✓] Flutter (Channel stable, v1.2.1, on Linux, locale pt_BR.UTF-8)
    • Flutter version 1.2.1 at /home/lucas/flutter
    • Framework revision 8661d8aecd (8 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /home/lucas/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-Q, build-tools 28.0.3
    • Java binary at: /home/lucas/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 3.3)
    • Android Studio at /home/lucas/android-studio
    • Flutter plugin version 33.4.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.33.0)
    • VS Code at /usr/share/code
    • Flutter extension version 2.25.0

[✓] Connected device (1 available)
    • SM G950F • ce10171abd2be43c05 • android-arm64 • Android 9 (API 28)

• No issues found!

如果我运行它:

print('a');
_user = await _auth.createUserWithEmailAndPassword(
        email: email, password: pass
      );
print('b');

它打印 'a' 并 getGoogleApiForMethod() 返回 Gms:com.google.firebase.auth.api.internal.zzal@7f42afc

【问题讨论】:

    标签: firebase flutter firebase-authentication


    【解决方案1】:

    我只需将 firebase_auth 升级到 0.7.0 就可以解决它(我有一些模块无法升级到 androidx),希望这对某人有所帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-08
      • 2019-05-23
      • 2020-06-04
      • 1970-01-01
      • 2023-04-03
      • 2018-10-30
      • 2021-09-27
      • 1970-01-01
      相关资源
      最近更新 更多