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

  • Activity won't render randomly, shows only white screen on Samsung
  • Change Size: Android Radio Button
  • GCMNetworkManager isn't running PeriodicTask after reboot
  • Confusing Cordova icons and splash screens directory
  • android selectableItemBackground selection
  • menu inflating calls multiple times at fragment's onCreateOptionsMenu
  • 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.
    

    Related posts:

    Viewpager not showing inside RecyclerView row
    YouTubePlayer not load Ad video with cueVideo()
    Mock GPS Provider only works while in Debug mode
    Gradle signing app with packageRelease “specified for property 'signingConfig.storeFile&...
    get fragment by tag or id from tablayout ,android
    OnEditorActionListener not working
  • How to start AccessibilityService?
  • ASyncTasks blocking others
  • What are the steps to get notified by Bluetooth Low Energy (BLE) device?
  • How to get app market version information from google play store?
  • how to get user online or offline in asmack, android
  • onBindViewHolder() is never called on view at position even though RecyclerView.findViewHolderForAdapterPosition() returns null at that position
  • 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 :

    [https://developers.google.com/mobile/add][1]

    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 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.

    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

    google-services .json

    and the right one is

    google-services.json

    and also take care you don not put (_) instead of (-)

    may help some one.

    https://developers.google.com/android/
    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

    google-services.json

    as

    google_services.json

    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.
    Links:
    https://developers.google.com/identity/sign-in/android/start-integrating
    https://developers.google.com/android/guides/client-auth

    Very Simple
    Just go to Tools->Firebase->Connect to firebase than click on sync now
    THIS WILL SURELY WORK.

    Steps:

    1. Navigate to your project folder and open the /app sub-folder.

    2. Paste the .json file here.

    3. Rebuild the project.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.