ninja: build stopped: subcommand failed. build/core/ninja.mk:158: recipe for target ninja_wrapper(代码
Posted Ang_qq_252390816
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ninja: build stopped: subcommand failed. build/core/ninja.mk:158: recipe for target ninja_wrapper(代码相关的知识,希望对你有一定的参考价值。
前言
编译android源码的时候报错导致编译中断,具体信息如下:
[ 0% 6/24270] Ensure Jack server is installed and started
FAILED: /bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar 2>&1 || (exit 0) ) && (JACK_SERVER_VM_ARGUMENTS=\\"-Dfile.encoding=UTF-8 -XX:+TieredCompilation\\" prebuilts/sdk/tools/jack-admin start-server 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update server prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar 4.8.ALPHA 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-2.28.RELEASE.jar 2.28.RELEASE || exit 47; prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-3.36.CANDIDATE.jar 3.36.CANDIDATE || exit 47; prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-4.7.BETA.jar 4.7.BETA || exit 47 )"
Jack server already installed in "/home/lza/.jack-server"
Communication error with Jack server (35), try 'jack-diagnose' or see Jack server log
SSL error when connecting to the Jack server. Try 'jack-diagnose'
SSL error when connecting to the Jack server. Try 'jack-diagnose'
[ 0% 6/24270] target thumb C: libicuuc
ninja: build stopped: subcommand failed.
build/core/ninja.mk:158: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
其他解决办法:
网上很多都是修改Jack端口,关闭再重启Jack服务,结果都没解决如上问题,如果尝试如上办法还没解决;那解决问题的方法就不是Jack的问题;
我的解决办法:
删除文件/etc/java-8-openjdk/security/java.security中的jdk.tls.disabledAlgorithms配置中的“ TLSv1,TLSv1.1”。删除“TLSv1,TLSv1.1”之后保存,从新编译问题解决!
以上是关于ninja: build stopped: subcommand failed. build/core/ninja.mk:158: recipe for target ninja_wrapper(代码的主要内容,如果未能解决你的问题,请参考以下文章
meson+ninja build系统,使用meson & ninja 编译C工程
我的C/C++语言学习进阶之旅解决使用ninja命令的时候报错:ninja: error: loading ‘build.ninja‘: 系统找不到指定的文件。
我的C/C++语言学习进阶之旅解决使用ninja命令的时候报错:ninja: error: loading ‘build.ninja‘: 系统找不到指定的文件。
我的C/C++语言学习进阶之旅解决使用ninja命令的时候报错:ninja: error: loading ‘build.ninja‘: 系统找不到指定的文件。