我有一个使用Firebase身份验证的Flutter应用。今天,我不得不杀死一个飞镖进程,并且从那时起,当我尝试登录或创建用户时,它返回getGoogleApiForMethod()返回了Gms:com.google.firebase.auth.api.internal.zzal@7f42afc并且不会创建(或检索)用户。
我已经干净利落了,但这使它工作了一次。 我的系统是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
答案 0 :(得分:0)
我能够解决,只需将firebase_auth升级到0.7.0(我有一些模块无法升级到androidx),希望这对某人有帮助