uni-app 勾选 push和unipush权限后云打包失败,取消权限则正常打包

uni-app 勾选 push和unipush权限后云打包失败,取消权限则正常打包

操作步骤:

  • 勾选 push和unipush权限后,安卓云打包失败

预期结果:

  • 打包成功

实际结果:

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
    • 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.
  • BUILD FAILED in 22s

  • gradle build error: 1


更多关于uni-app 勾选 push和unipush权限后云打包失败,取消权限则正常打包的实战教程也可以访问 https://www.itying.com/category-93-b0.html

4 回复

谷歌包?

更多关于uni-app 勾选 push和unipush权限后云打包失败,取消权限则正常打包的实战教程也可以访问 https://www.itying.com/category-93-b0.html


是没有配置谷歌推送FCM造成的,不知是否能取消该功能

Caused by: org.gradle.api.GradleException: File google-services.json is missing. The Google Services Plugin cannot function without it. 参考文档:UniPush支持谷歌推送FCM配置指南

能否取消谷歌推送,不用配置FCM

回到顶部