I\'m having trouble writing to my Firebase database in my simple Android app. I\'ve set my database rules to be public:
{ \"rules\": { \".read\": true,
This looks like problem with your google-services.json.
Make sure app name and client id are same as in firebase console.
If you are not sure re-download google-services.json from your project's console and add it your project.