制作自定义调试基座,选择云端证书打Android包,总是报错,提示缺少google-services.json文件,请问怎么解决?
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:processReleaseGoogleServices'.File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
[PackagePath]/app/src/release/google-services.json
[PackagePath]/app/src/google-services.json
[PackagePath]/app/src/Release/google-services.json
[PackagePath]/app/google-services.json* Try:
Run with --debug option to get more log output.
Run with --scan to get full insights.
2 个回复
qxcl
有人解答吗?
s***@baozun.com
我也遇到了,我用的HBuildX四4.36, 打安卓自定义包的时候报这个错误。原因是勾选了unipush, 但是并没有勾选Google的FCM模块,这个错误说是缺失google-services.json,但是没有勾选也报这个错误就奇怪了。