删除Gradle警告:找不到google-services.json

Ste*_*ger 16 android android-gradle-plugin

google-services:3.1.1 to 3.2.0从那时起切换我收到以下警告

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]
Run Code Online (Sandbox Code Playgroud)

我在我的gradle控制台中看到该JSON文件是从正确的位置解析的,因为如果你没有使用任何口味,它是预期的.

Parsing json file: C:\testApp\app\google-services.json
Run Code Online (Sandbox Code Playgroud)

所以建筑工作正常.

但我真的很喜欢干净的控制台输出,所以如何删除这个似乎不需要的警告呢?

Fal*_*ken 20

这似乎是固定的com.google.gms:google-services:4.0.2,于2018年7月13日发布.

谷歌服务的Gradle输出: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
Run Code Online (Sandbox Code Playgroud)

谷歌服务的Gradle输出: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
Run Code Online (Sandbox Code Playgroud)


wld*_*nfr 14

这是一个众所周知的回归.有关详细信息,请查看Google问题#110321069.在提供修复之前,只需忽略警告即可.

  • 我正在为链接的问题获得"拒绝访问".这个问题是私有的吗?我们在哪里可以关注更新? (7认同)