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

发布于 1周前 作者 songsunli 来自 Uni-App

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


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

回到顶部
AI 助手
你好,我是IT营的 AI 助手
您可以尝试点击下方的快捷入口开启体验!