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?
The google-services. json file is generally placed in the app/ directory (at the root of the Android Studio app module).
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With