Error: File google-services.json is missing. The Google Services Plugin cannot function without it.

18,993

Solution 1

Had the same problem - builded before next step of tutorial. You have to generate and download the file from firebase website. See Error "File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it" - late, but someone may need this nowdays.

Solution 2

go into SDK manager --> SDK tool---->install play service and USB tool and repository I have solved same problem with above method

or u can change the name of google service google-services.json instead of google-services(any number).json

Solution 3

just change in the build.gradle the line

compile fileTree (dir: 'libs', include: ['* .jar'])

to

implementation fileTree(dir: 'libs', include: ['*.jar'])

Share:
18,993
Vikas Sharma
Author by

Vikas Sharma

i am Android Developer in VACE software Solutions. I have 6 months Experience in Android Development and also Java Certified Programmer (OCPJP)1.6.

Updated on June 05, 2022

Comments

  • Vikas Sharma
    Vikas Sharma about 2 years

    i have already include google-services.json file in my app but it still give me error. Error:Execution failed for task ':app:processDebugGoogleServices'.

    File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: C:\Users\vikas\AndroidStudioProjects\FireBaseFunctionality\app\src\debug\google-services.json C:\Users\vikas\AndroidStudioProjects\FireBaseFunctionality\app\google-services.json

  • IgorGanapolsky
    IgorGanapolsky over 4 years
    Is this a viable solution in 2019?
  • K-Dawg
    K-Dawg about 4 years
    Where would I expect to find .pub-cache?!
  • Sercan
    Sercan over 2 years
    This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. To get notified when this question gets new answers, you can follow this question. Once you have enough reputation, you can also add a bounty to draw more attention to this question. - From Review
  • JIJO J
    JIJO J over 2 years
    It's in the flutter installation folder. Would be hidden.
  • K-Dawg
    K-Dawg over 2 years
    Thanks, dude appreciated!