【问题标题】:Execution failed for task ':app:bundleReleaseJsAndAssets'. when running expo EAS services任务 \':app:bundleReleaseJsAndAssets\' 的执行失败。运行 expo EAS 服务时
【发布时间】:2022-10-23 20:22:15
【问题描述】:

当我尝试使用 expo EAS 服务构建我的 expo react 本机应用程序时,出现以下错误,

Please consult deprecation warnings for more details.
426 actionable tasks: 426 executed
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:bundleReleaseJsAndAssets'.
[stderr] > Process 'command 'node'' finished with non-zero exit value 1
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 3m 8s
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

我的 eas.json 看起来像这样,

{
  "cli": {
    "version": ">= 2.4.1"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal",
      "android": {
        "image": "ubuntu-18.04-jdk-11-ndk-r19c"
      }
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {
      "android": {
        "buildType": "apk"
      }
    }
  },
  "submit": {
    "production": {}
  }
}

我的应用程序配置如下,

minSdkVersion = '21'
buildToolsVersion = '31.0.0'
compileSdkVersion = '33'
targetSdkVersion = '33'

我正在尝试在这里生成一个 apk。 有人可以帮忙吗

【问题讨论】:

  • 您是否在日志中向上滚动,问题的真正原因应该记录在上面的某个地方。
  • @Ferry Kranenburg 谢谢我能够修复它。

标签: react-native gradle expo gradlew expo-eas


【解决方案1】:

问题的真正原因应该记录在上面的某个地方

【讨论】:

    猜你喜欢
    • 2021-04-12
    • 2022-11-06
    • 1970-01-01
    • 2022-11-07
    • 2023-01-05
    • 2021-09-24
    • 2018-11-14
    • 2020-03-07
    • 1970-01-01
    相关资源
    最近更新 更多