AOSP 编译错误Jack server ssl error(35)

编译环境

system:Ubuntu 20.04
jdk:openjdk 1.8.0_292

错误信息

...
...
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'

故障现象

  1. AOSP项目,之前可以正常编译,突然无法编译;
  2. 重启jack server无效
  3. 修改jack server端口号无效
  4. 查看jack server日志( ~/.jack-server/logs/jack-server-0-0.log)无任何异常
  5. jack-diagnose 也看不出问题

解决方案

1.修改jdk配置文件/etc/java-8-openjdk/security/java.security

删除配置文件中的TLSv1,TLSv1.1

# ↓ 原来是这样 ↓
# jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \

# ↓ 修改为这样 ↓
jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA, \
2.重新启动jack server
jack-admin kill-server
jack-admin start-server
3.重新编译,搞定

你可能感兴趣的:(AOSP 编译错误Jack server ssl error(35))