uni-app 勾选 push和unipush权限后云打包失败,取消权限则正常打包
uni-app 勾选 push和unipush权限后云打包失败,取消权限则正常打包
操作步骤:
- 勾选 push和unipush权限后,安卓云打包失败
预期结果:
- 打包成功
实际结果:
- [HBuilder] 15:45:54.950 项目 tworkAPP [xxxxxxxxx]的打包状态:
- [HBuilder] 15:45:54.950 时间: 2022-05-28 15:44:50 类型: Android自有证书 打包失败 错误日志: https://ide.dcloud.net.cn/build/errorLog/0d9fe130-de5a-11ec-a9ee-13169d89d7bb
bug描述:
-
Appid: xxxxxxxx
-
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/nullnull/release/google-services.json
- [PackagePath]/app/src/release/nullnull/google-services.json
- [PackagePath]/app/src/nullnull/google-services.json
- [PackagePath]/app/src/release/google-services.json
- [PackagePath]/app/src/nullnullRelease/google-services.json
- [PackagePath]/app/google-services.json
- Searched Location:
- File google-services.json is missing. The Google Services Plugin cannot function without it.
- Execution failed for task ‘:app:processReleaseGoogleServices’.
- Try:
- Run with --debug option to get more log output. Run with --scan to get full insights.
- Exception is:
- org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:app:processReleaseGoogleServices’.
- Caused by: org.gradle.api.GradleException: File google-services.json is missing. The Google Services Plugin cannot function without it.
- What went wrong:
-
BUILD FAILED in 22s
-
gradle build error: 1
4 回复
谷歌包?
是没有配置谷歌推送FCM造成的,不知是否能取消该功能
Caused by: org.gradle.api.GradleException: File google-services.json is missing. The Google Services Plugin cannot function without it.
参考文档:UniPush支持谷歌推送FCM配置指南
能否取消谷歌推送,不用配置FCM