Firebase On Android Suddenly Not Working
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!
Delete the project from firebase.com, it will delete the API keys from google cloud console.
Delete the implementations from build.gradle just remove each line containing firebase word.
Remove the GoogleServices.json file.
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"