代码之家  ›  专栏  ›  技术社区  ›  Riddhi Shankar

Azure CI-CD安卓系统:无法启动后台进程。错误:进程“/Users/runner/work/1/s/gradlew”失败,退出代码为

  •  -1
  • Riddhi Shankar  · 技术社区  · 2 年前

    我的项目是基于口味的QA,UAT,PROD。 在本地系统中一切正常,成功构建了apk生成。 但我面对的是Azure Pipeline

    pipeline1

    我尝试过编辑管道步骤。但没用。还检查了JDK版本。 但我不确定是否需要为不同的环境/口味做些什么。 谢谢阿达万斯。我们会通知您的回复。

    0 回复  |  直到 2 年前
        1
  •  1
  •   Reiko    2 年前

    在日志中,您将找到以下行:

    Unable to start the daemon process.
    Error: The process '...' failed with exit code 1`
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option used.
    Please refer...
    Process command line: ...
    Please read the following process output to find out more:
    Unrecognized option: --illegal-access=permit
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    

    决定性部分:

    Unrecognized option: --illegal-access=permit
    

    如果参数设置在那里,请检查您的管道、环境(变量)和项目。

    例如,通过DEFAULT_JVM_OPTS。

    请检查您的Java版本。本地和Azure构建中是否使用相同的JVM版本?在Java 8中,这个参数还不存在。它是在Java 9中引入的。


    有关的详细信息 --illegal-access 点击 here

    推荐文章