Firefly开源社区

标题: 【Android7.1】【RK3399】怎么解决编译失败Jack server failed to (re)start [打印本页]

作者: kamio    时间: 2021-9-7 21:54
标题: 【Android7.1】【RK3399】怎么解决编译失败Jack server failed to (re)start
报错提示 Jack server failed to (re)start
[ 30% 5156/17130] 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 )"
Writing client settings in /home/lyl/.jack-settings
Installing jack server in "/home/lyl/.jack-server"

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /home/lyl/.jack-server/server.jks -destkeystore /home/lyl/.jack-server/server.jks -deststoretype pkcs12".

Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /home/lyl/.jack-server/client.jks -destkeystore /home/lyl/.jack-server/client.jks -deststoretype pkcs12".
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096M -cp /home/lyl/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
Jack server failed to (re)start, 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'

编译指令
./FFTools/make.sh -d rk3399-roc-pc-plus-mipi101 -l rk3399_roc_pc_plus_mipi-userdebug -j16;./FFTools/mkupdate/mkupdate.sh -l rk3399_roc_pc_plus_mipi-userdebug

尝试过的解决方法:
(1)诊断
./prebuilts/sdk/tools/jack-diagnose  
如果端口被占用
netstat -ap | grep 8076  
kill -9 pid(找到用端口的进程id)  
sudo chmod 755 $HOME/.jack-server/config.properties  

Restart the jack server:  
./prebuilts/sdk/tools/jack-admin kill-server   
./prebuilts/sdk/tools/jack-admin start-server  

(2)修改网络套接字端口为没有被使用的
/home/lyl/.jack-settings
/home/lyl/.jack-server

(3)重新安装jack服务
cd prebuilts/sdk/tools
jack-admin kill-server
jack-admin uninstall-server
cd prebuilts/sdk/tools
touch jack
mm -j32 showcommands &> mm.out
./jack-admin install-server jack-launcher.jar jack-server-4.8.ALPHA.jar

作者: kamio    时间: 2021-9-7 22:28
问题已经解决
(4) 删除/etc/java-8-openjdk/security/java.security文件里配置项jdk.tls.disabledAlgorithms中的TLSv1, TLSv1.1
sudo vi /etc/java-8-openjdk/security/java.security
重点:修改后,重新开一个terminal,否则配置项没更新到shell进程,还是会编译失败


作者: jpchen    时间: 2021-9-8 16:47
kamio 发表于 2021-9-7 22:28
问题已经解决
(4) 删除/etc/java-8-openjdk/security/java.security文件里配置项jdk.tls.disabledAlgorith ...






欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1