Skip to content Skip to sidebar Skip to footer

Firebase On Android Suddenly Not Working

This person has a similar issue to me Firebase for android not working in my test device suddenly but it was never answered, and the people in the comments seem to have a similar i

Solution 1:

After spending HOURS on this myself - the revolutionary solution is to quit the emulator and reopen it again / restart your device.

Solution 2:

In my case, it would work on an emulator but not on a real device. It turns out I had to reset my WiFi router. This answer helped me: Firebase database listeners don't work on android with wifi

Solution 3:

Remove firebase from your android project and then again connect it Properly!

  1. Delete the project from firebase.com, it will delete the API keys from google cloud console.

  2. Delete the implementations from build.gradle just remove each line containing firebase word.

  3. Remove the GoogleServices.json file.

  4. Remove the plugins from the build.gradle at the beginning.

Now invalidate caches and restart. clean the project. And with a fresh start connect the app with firebase and then things should work properly.

Mine was not working because I mistakenly deleted the keys from google cloud and then things became worse. I was unable to undo the step cause I am not an experienced developer.

CHECK THIS ANSWER ALSO - Firebase credentials API deleted mistakenly not working after creating api manually

Solution 4:

I had the exact same issue. Looked almost all the blogs,even contacted firebase support as well but couldn't find the solution. Finally here is the solution. Just update your existing google-services.json from Firebase->Your project's Project Settings. Rebuild the app and try it out!

Post a Comment for "Firebase On Android Suddenly Not Working"