Error “File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it”
I updated my project to the latest Play services
classpath 'com.google.gms:google-services:1.5.0-beta2'. I am also using the latest version of playservices in my app.gradle file as:
compile 'com.google.android.gms:play-services-location:8.3.0' compile 'com.google.android.gms:play-services-gcm:8.3.0'
However when I compile, Gradle throws exception as follows
Error:Execution failed for task ':app:processDebugGoogleServices'. > File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it.
13 Solutions collect form web for “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.
Please go to this URL :
Choose your Options and finally you will be able to download
copy that file and paste it Into
Then recompile the project Most probably it will fly
In my case the directory looks like this :
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.
I just run into problem downloading
google-services.json from Firebase console. Turns out I had to log out from all other google accounts than the one I was using for Firebase.
Go to the configuration file from the developer’s site and paste it in the app level directory of your current project.
in my case i have saved a json file with a space like this
and the right one is
and also take care you don not put (_) instead of (-)
may help some one.
you need to generate configuaration file which gives you access to all the services and APIs you registered for in developer console and place it in your root directory
That Problem is because:- The folder or file you pasted to your product downloaded from the firebase console is not named as google-services.json. so now click it then right mouse click in all the options open refractor and rename it to google-services.json. because this worked for me
I had the same problem. The problem is because of renaming the file. You might have downloaded number of google-services.json file in you downloads folder. So when you download a new file it will download with same name but by adding numeric values in brackets. something like google-services(1).json .So you will delete this (1) and copy the file. Make sure when you are renaming it there should not be any spaces or extra . in the name of the file.
Had faced same issue ..
well in my case i have saved
I tried every solution mentioned above but nothing helps…
the error was instead of “_” you need to put “-“(dash).
Just refactoring the file to google-services.json from google_services.json works like charm..
Hope this helps!!!
P.S. I know it’s sound silly but this only works for me…
You must go on Firebase console–>Settings–>Project Settings and there will be section with Download the latest config file. Download google-service.json and put into app folder. It’s work for me.
Just go to Tools->Firebase->Connect to firebase than click on sync now
THIS WILL SURELY WORK.
Navigate to your project folder and open the /app sub-folder.
Paste the .json file here.
Rebuild the project.