Skip to content

Build error: google-services.json is missing #13

@ruimaciel

Description

@ruimaciel

When I tried to open the project with Android Studio Giraffe (2022.3.1) I got the following error:

Execution failed for task ':app:processDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it. 
   Searched Location: 
  /home/rui/develop/android/byheart/byheart-android/app/google-services.json
  /home/rui/develop/android/byheart/byheart-android/app/src/nullnull/google-services.json
  /home/rui/develop/android/byheart/byheart-android/app/src/debug/google-services.json
  /home/rui/develop/android/byheart/byheart-android/app/src/nullnullDebug/google-services.json
  /home/rui/develop/android/byheart/byheart-android/app/src/nullnull/debug/google-services.json
  /home/rui/develop/android/byheart/byheart-android/app/src/debug/nullnull/google-services.json

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Steps to reproduce the issue:

  • Download Android Studio Giraffe,
  • open byheart project,
  • build byheart project without upgrading Gradle.

Taken from the Google Services Troubleshooting section:

Q: When building I get the following error message: "File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it".

A: The Firebase console will help you download the google-services.json. In addition, the Quickstart guides for most APIs have instructions for generating this file. Once you have downloaded the google-services.json file, copy it into the app/ folder of your Android Studio project, or into the app/src/{build_type} folder if you are using multiple build types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions