【问题标题】:Firebase Authentication Failing with flutter app扑动应用程序的Firebase身份验证失败
【发布时间】:2019-10-29 14:33:54
【问题描述】:

使用颤振应用程序的 Firebase 身份验证失败并出现以下错误 在调试模式下在 TECNO LA7 上启动 lib/main.dart... 正在初始化梯度... 解决依赖关系... 正在运行 Gradle 任务“assembleDebug”... 注意:/Users/mac/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.0+5/android/src/main/java/io/flutter/plugins/firebase/core/ FirebaseCorePlugin.java 使用未经检查或不安全的操作。 注意:使用 -Xlint:unchecked 重新编译以获取详细信息。 构建 build/app/outputs/apk/debug/app-debug.apk。 正在安装 build/app/outputs/apk/app.apk... 正在将文件同步到设备 TECNO LA7... D/HWUIExtension(11822):MTKProgramCache.generateProgram:562984313159681 D/HWUIExtension(11822):createProgram 0x0002000800000001,二进制0x8517f6c8,长度11771,格式37168在1349ns内 W/IInputConnectionWrapper(11822):非活动 InputConnection 上的 getTextBeforeCursor W/IInputConnectionWrapper(11822):非活动 InputConnection 上的 getTextBeforeCursor W/IInputConnectionWrapper(11822):非活动 InputConnection 上的 getSelectedText E/MethodChannel#plugins.flutter.io/firebase_auth(11822):处理方法调用失败 E/MethodChannel#plugins.flutter.io/firebase_auth(11822):java.lang.IllegalStateException:名称为 [DEFAULT] 的 FirebaseApp 不存在。 E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@17.0.0:269) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 io.flutter.plugins.firebaseauth.FirebaseAuthPlugin.getAuth(FirebaseAuthPlugin.java:78) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 io.flutter.plugins.firebaseauth.FirebaseAuthPlugin.onMethodCall(FirebaseAuthPlugin.java:119) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:201) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:88) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:219) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 android.os.MessageQueue.nativePollOnce(Native Method) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 android.os.MessageQueue.next(MessageQueue.java:325) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 android.os.Looper.loop(Looper.java:142) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 android.app.ActivityThread.main(ActivityThread.java:6524) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 java.lang.reflect.Method.invoke(Native Method) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888) I/flutter(11822):错误:PlatformException(错误,名称为 [DEFAULT] 的 FirebaseApp 不存在。,null) I/zygote (11822):做部分代码缓存收集,代码=30KB,数据=28KB I/zygote (11822):代码缓存收集后,代码=30KB,数据=28KB I/zygote (11822):将代码缓存容量增加到 128KB E/libPowerStretch(11822): LucidStats currentFPS = 2.01 [2305329520] E/libPowerStretch(11822):LUCID 电池电量 = 41% 电池温度 = -100 Cpu 温度 = -100 E/MethodChannel#plugins.flutter.io/firebase_auth(11822):处理方法调用失败 E/MethodChannel#plugins.flutter.io/firebase_auth(11822):java.lang.IllegalStateException:名称为 [DEFAULT] 的 FirebaseApp 不存在。 E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 com.google.firebase.FirebaseApp.getInstance(com.google.firebase:firebase-common@@17.0.0:269) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 io.flutter.plugins.firebaseauth.FirebaseAuthPlugin.getAuth(FirebaseAuthPlugin.java:78) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 io.flutter.plugins.firebaseauth.FirebaseAuthPlugin.onMethodCall(FirebaseAuthPlugin.java:119) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:201) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:88) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:219) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 android.os.MessageQueue.nativePollOnce(Native Method) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 android.os.MessageQueue.next(MessageQueue.java:325) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 android.os.Looper.loop(Looper.java:142) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 android.app.ActivityThread.main(ActivityThread.java:6524) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 java.lang.reflect.Method.invoke(Native Method) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) E/MethodChannel#plugins.flutter.io/firebase_auth(11822):在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888) I/flutter(11822):错误:PlatformException(错误,名称为 [DEFAULT] 的 FirebaseApp 不存在。,null) E/libPowerStretch(11822):LucidStats currentFPS = 2.22 [2305329520] E/libPowerStretch(11822):LUCID 电池电量 = 41% 电池温度 = -100 Cpu 温度 = -100 E/libPowerStretch(11822):LucidStats currentFPS = 2.00 [2305329520] E/libPowerStretch(11822):LUCID 电池电量 = 41% 电池温度 = -100 Cpu 温度 = -100 E/libPowerStretch(11822):LucidStats currentFPS = 2.00 [2305329520] E/libPowerStretch(11822):LUCID 电池电量 = 42% 电池温度 = -100 Cpu 温度 = -100 E/libPowerStretch(11822):LucidStats currentFPS = 2.00 [2305329520] E/libPowerStretch(11822):LUCID 电池电量 = 42% 电池温度 = -100 Cpu 温度 = -100 E/libPowerStretch(11822):LucidStats currentFPS = 2.00 [2305329520] E/libPowerStretch(11822):LUCID 电池电量 = 42% 电池温度 = -100 Cpu 温度 = -100 E/libPowerStretch(11822):LucidStats currentFPS = 2.00 [2305329520] E/libPowerStretch(11822):LUCID 电池电量 = 42% 电池温度 = -100 Cpu 温度 = -100 E/libPowerStretch(11822):LucidStats currentFPS = 2.00 [2305329520] E/libPowerStretch(11822):LUCID 电池电量 = 42% 电池温度 = -100 Cpu 温度 = -100

【问题讨论】:

    标签: flutter


    【解决方案1】:

    对此我不确定,我需要验证 我更新了 GeneratedPluginRegistrant.java 文件 在 android/app/src/main/java/io.flutter.plugins/ 文件夹中以及一些 firebase 身份验证的工作原理

    【讨论】:

      【解决方案2】:

      如果没有详细说明导致此错误的代码是什么,很难说,但该错误似乎表明没有为此应用程序配置 Firebase 应用程序 - “名称为 [DEFAULT] 的 FirebaseApp 没有存在。”

      我建议检查您的应用配置,并检查它是否与 Firebase 控制台中的应用详细信息相匹配。

      【讨论】:

      • 我确实从 firebase 控制台检查了 firebase 应用程序配置,一切似乎都还可以
      猜你喜欢
      • 2018-01-24
      • 1970-01-01
      • 2017-11-27
      • 1970-01-01
      • 2019-03-09
      • 1970-01-01
      • 1970-01-01
      • 2019-05-07
      相关资源
      最近更新 更多