错误信息
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_SERVERencoding=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.AL|| 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/sdkCANDIDATE.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/XXX/.jack-server"
Communication error with Jack server (51), try 'jack-diagnose' or see Jack server log
Communication error with Jack server 51. Try 'jack-diagnose'
Communication error with Jack server 51. Try 'jack-diagnose'
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
该问题是TLSv1, TLSv1.1 from jdk.tls.disabledAlgorithms 引起的问题
解决方案
rm /etc/java-8-openjdk/security/java.security
执行prebuilts/sdk/tool/jack-admin kill-server杀掉服务
删除.jack-server整个目录
修改.jack-setting内的server,由127.0.0.1改为localhost
直接编译代码,查看自动生成的.jack-server/config.properties内的端口是否与.jack-setting内的端口一致
执行prebuilts/sdk/tool/jack,查看返回是否正常
|