Firebase compilation error

I have all things many times but the issue is the same. I have re-upload json file also.

First of all, Firebase Realtime Database does not require firebase-core. However, if you include firebase-core, you must add the configuration file named google-services.json (exactly this name) in your project’s app directory. This file is required for proper initialization.

Thanks, it works. I remove firebase core. But I want to why this happening, I added firebase core and also add google-services.json with exact name, exact package name, api key, firebase url, all things are same in firebase and app also. I also tried with test app also those was not compiling.

Perhaps your JSON is lacking some data that is essential to compile with the build server. Maybe it’s the API key, maybe not, but that problem only appears when your JSON has certain missing properties.