Error "File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it"

You need to get the configuration file from the developer's site and paste it in the app level directory of your project.

Update:

Goto

  1. https://console.firebase.google.com/

  2. Select your project

  3. On the left menu, click on settings > project settings

  4. Add an app or download the google-services.json file under the Your Apps section.


Please go to this URL :

https://developers.google.com/mobile/add

Choose your Options and finally you will be able to download

google-service.json file

copy that file and paste it Into

YourProjectName/app Directory

Then recompile the project Most probably it will fly

In my case the project directory looks like this :

enter image description here


For anyone using Firebase you need to go into your console and there it should say "add project to Android". From there, it will step-by-step generate the google-services.json file for you.