简体   繁体   English

Android-Firebase身份验证不适用于电子邮件/密码设置

[英]Android - Firebase Authentication not working with Email/Password setup

So, I have my Firebase project setup, and all plugins that should be needed in the build.gradle (I quintuple checked). 因此,我有我的Firebase项目设置,以及build.gradle中需要的所有插件(我检查了五倍)。 However, when I run my app and try to run the following method: 但是,当我运行我的应用程序并尝试运行以下方法时:

createUserWithEmailAndPassword(email, password)

It does not work and I constantly get something - which I will show below - in the log, and a notification manager popping up saying "Channel not found." 它不起作用,我不断在日志中得到一些信息(将在下面显示),然后弹出一个通知管理器,提示“找不到频道”。 I am not using a Notification Manager, but I believe it is done deep within the Android Runtime environment. 我没有使用Notification Manager,但我相信它是在Android Runtime环境中完成的。

This method is called after the user types in the username and password in a GUI, and uses the method above to try to create a connection with my firebase project. 在用户在GUI中键入用户名和密码后,将调用此方法,并使用上述方法尝试与我的Firebase项目创建连接。

1-12 01:36:17.181 6593-6593/com.example.sarah.whosthere I/BiChannelGoogleApi: [FirebaseAuth: ] No Fallback module; NOT setting up for lazy initialization 
11-12 01:37:50.967 6593-6593/com.example.sarah.whosthere W/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms
11-12 01:37:51.140 1681-3474/system_process E/NotificationService: No Channel found for pkg=com.example.sarah.whosthere, channelId=null, id=10436, tag=null, opPkg=com.example.sarah.whosthere, callingUid=10085, userId=0, incomingUserId=0, notificationUid=10085, notification=Notification(channel=null pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x110 color=0x00000000 vis=PRIVATE)

Also, in debug mode, during this method call I get a "no such instance field" error for my mAuth variable, which is set to an instance of FirebaseAuth. 另外,在调试模式下,在此方法调用期间,我的mAuth变量收到“无此类实例字段”错误,该变量设置为FirebaseAuth的实例。 I tried looking this up, but what I have found and tried does not seem relevant towards my case. 我尝试查找此内容,但是我发现并尝试的内容似乎与我的情况无关。

If anyone has any reasons why this method would not be doing anything, I would appreciate the help as I have been banging my head against the wall for the past 4 hours trying to figure this out. 如果有人出于某种原因无法使用此方法执行任何操作,那么在过去的4个小时中我一直将自己的头撞在墙上,试图找出答案,将非常感谢您的帮助。

Thanks in advance. 提前致谢。

UPDATE I got this working by changing the version from 11.6.0 down to 10.2.6 for all firebase services, including google play. 更新我通过将所有Firebase服务(包括google play)的版本从11.6.0更改为10.2.6来使它工作。

I have a similar problem when calling signInWithEmailAndPassword(). 调用signInWithEmailAndPassword()时,我遇到类似的问题。 Not really an answer, but I think that this has come about since the upgrade to Firebase 11.6.0 Downgrading to 11.4.2 seems to remove the warning messages. 并不是一个真正的答案,但是我认为这是自从升级到Firebase 11.6.0降级到11.4.2以来似乎已经消除的警告消息。

Had the same Issue here, after updating the Google Play Store it works like a charm. 在更新Google Play商店后,这里也遇到了同样的问题。 I hope it will work for you too 我希望它也对您有用

I had this problem as well. 我也有这个问题。 I found out that the emulator was offline for some reason, so i just closed the emulator and tried again. 我发现模拟器由于某种原因处于脱机状态,因此我只是关闭了模拟器并再次尝试。

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

相关问题 Firebase身份验证API电子邮件/密码Android - Firebase Authentication API Email/Password Android Android Firebase 电子邮件和密码身份验证不起作用 - Android Firebase Email and password authentication does not work 使用电子邮件和密码进行 Firebase 身份验证 - Firebase Authentication With Email & Password 使用Firebase身份验证通过电子邮件/密码将Firebase连接到Android应用程序 - Connecting Firebase to Android application using Firebase authentication via email/password Firebase 电子邮件和密码身份验证失败 - Firebase email and password authentication fails 使用 Android 进行 Firebase 电子邮件和密码身份验证 - 用户注册 - Firebase Email and Password Authentication with android - User sign up Firebase 身份验证与 email 和密码额外字段重复 - Android - ZD52387880E15EA22817A723 - Firebase authentication with email and password extra fields duplicating - Android - Java 自定义登录中的Firebase Android重置密码(不适用于电子邮件身份验证) - Firebase Android reset password in custom Login (not with email authentication) 如何在Firebase中添加带有电子邮件+密码身份验证的DisplayName? Android的 - How to add DisplayName with email + password authentication in Firebase? Android Android Studio 的 Firebase 工具中缺少 Email 和密码验证 - Missing Email and Password Authentication in Android Studio's Firebase tool
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM