Firefly开源社区

打印 上一主题 下一主题

[Android] 【Android7.1】【RK3399】怎么解决编译失败Jack server failed to (re)start

99

积分

0

威望

0

贡献

技术小白

积分
99

【Android7.1】【RK3399】怎么解决编译失败Jack server failed to (re)start

发表于 2021-9-7 21:54:30      浏览:6678 | 回复:2        打印      只看该作者   [复制链接] 楼主
报错提示 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
回复

使用道具 举报

99

积分

0

威望

0

贡献

技术小白

积分
99
发表于 2021-9-7 22:28:21        只看该作者  沙发
问题已经解决
(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进程,还是会编译失败

回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2021-9-8 16:47:22        只看该作者  板凳
kamio 发表于 2021-9-7 22:28
问题已经解决
(4) 删除/etc/java-8-openjdk/security/java.security文件里配置项jdk.tls.disabledAlgorith ...

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表