其他分享
首页 > 其他分享> > ninja: build stopped: subcommand failed. build/core/ninja.mk:158: recipe for target ninja_wrapper

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”之后保存,从新编译问题解决!
————————————————
版权声明:本文为CSDN博主「Ang_qq_252390816」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

标签:core,Jack,server,build,ninja,sdk,tools,prebuilts,jack
来源: https://blog.csdn.net/baidu_35904821/article/details/121383226