[英]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.