简体   繁体   中英

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). 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.

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.

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. 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.

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.

I have a similar problem when calling 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.

Had the same Issue here, after updating the Google Play Store it works like a charm. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM