MethodChannel#plugins.flatter.io/firebase_auth(31559):无法处理方法调用

MethodChannel#plugins.flatter.io/firebase_auth(31559):无法处理方法调用,firebase,dart,flutter,firebase-authentication,Firebase,Dart,Flutter,Firebase Authentication,这是我在firebase中为用户添加的登录应用程序。所有安装程序,但每当我尝试登录时,都会发生以下错误: MethodChannel#plugins.flatter.io/firebase_auth(31559):未能 句柄方法调用 我添加了这些依赖项 我的pubspec.yaml文件 dependencies: flutter: sdk: flutter firebase_core: ^0.2.5+1 firebase_auth: ^0.7.0 android/gradl

这是我在firebase中为用户添加的登录应用程序。所有安装程序,但每当我尝试登录时,都会发生以下错误:

MethodChannel#plugins.flatter.io/firebase_auth(31559):未能 句柄方法调用

我添加了这些依赖项

我的pubspec.yaml文件

dependencies:
  flutter:
    sdk: flutter
  firebase_core: ^0.2.5+1
  firebase_auth: ^0.7.0
android/gradle.properties

dependencies {
    classpath 'com.android.tools.build:gradle:3.2.1'
    classpath 'com.google.gms:google-services:4.2.0'
   }
apply plugin: 'com.google.gms.google-services' //at the end
android/app/gradle.properties

dependencies {
    classpath 'com.android.tools.build:gradle:3.2.1'
    classpath 'com.google.gms:google-services:4.2.0'
   }
apply plugin: 'com.google.gms.google-services' //at the end
E/MethodChannel#plugins.flatter.io/firebase_auth(31559):未能 句柄方法调用

E/MethodChannel#plugins.flatter.io/firebase_auth(31559): java.lang.IllegalArgumentException:给定的字符串为空或null

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at com.google.android.gms.common.internal.premissions.checkNotEmpty(未知 (来源)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at com.google.firebase.auth.FirebaseAuth.createUserWithEmailAndPassword(未知 (来源)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at io.flatter.plugins.firebaseauth.FirebaseAuthPlugin.handleCreateUserWithEmailAndPassword(FirebaseAuthPlugin.java:302)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at FirebaseAuthPlugin.onMethodCall(FirebaseAuthPlugin.java:89)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at io.flatter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:201)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at io.flatter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:88)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at io.flatter.embedding.engine.flatterjni.handlePlatformMessage(flatterjni.java:219)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at android.os.MessageQueue.nativePollOnce(本机方法)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at next(MessageQueue.java:328)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at Looper.loop(Looper.java:148)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at main(ActivityThread.java:6364)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at java.lang.reflect.Method.invoke(本机方法)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1076)

E/MethodChannel#plugins.flatter.io/firebase_auth(31559):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:937)I/flutter (31559):给定字符串为空或null


发生此错误的原因是您尚未启用google登录,并在firebase控制台帐户中使用电子邮件和密码登录。请尝试从firebase控制台启用该帐户。 如何启用:登录到您的控制台单击要使用登录的特定应用,然后单击“身份验证”,然后单击“登录方法”,现在切换到所需的登录选项谢谢我相信这对您有效
在执行此操作之前,请确保已将firebase文件添加到应用程序中,我指的是google-service.json文件

如果出现此消息“java.lang.IllegalArgumentException:给定字符串为空或null”,则在某个位置传递空字符串或null。如果没有看到(请阅读链接,因为它非常有用),很难说更多。我解决了它,我在电子邮件和密码字段中传递表单值,但我需要做的是在值中传递电子邮件和密码