Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Gradle Warnings: Could not find google-services.json

Switched from google-services:3.1.1 to 3.2.0 since then I get the following warning

Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]

Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]

I see in my gradle console that the JSON file is parsed from the right place, as it is expected if you didn't use any flavors.

Parsing json file: C:\testApp\app\google-services.json

So building works fine.

But I really like a clean console output, so how can I remove this warning that seems not needed?

like image 883
Stephan Eichinger Avatar asked Mar 22 '18 07:03

Stephan Eichinger


People also ask

Where I can get Google services json?

The google-services. json file is generally placed in the app/ directory (at the root of the Android Studio app module).

Where to put Google services json in react native?

Go to Project Settings and under the General tab. Click on Your Apps , add an Android application, and download your google-services. json file – you need to put this in the root of your projects android directory.


1 Answers

This appears to be fixed with com.google.gms:google-services:4.0.2 which was released on July 13, 2018.

Gradle output with google-services:4.0.2:

> Configure project :app

> Task :app:processDebugGoogleServices
Parsing json file: /.../build/app/google-services.json

> Task :app:processReleaseGoogleServices
Parsing json file: /.../build/app/google-services.json

Gradle output with google-services:4.0.1:

> Configure project :app
Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]

> Task :app:processDebugGoogleServices
Parsing json file: /.../build/app/google-services.json

> Task :app:processReleaseGoogleServices
Parsing json file: /.../build/app/google-services.json
like image 115
falken Avatar answered Sep 22 '22 14:09

falken