美文网首页
AOSP 编译错误Jack server ssl error(3

AOSP 编译错误Jack server ssl error(3

作者: Vincent_o_0 | 来源:发表于2021-05-06 09:21 被阅读0次

    编译环境

    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(3

          本文链接:https://www.haomeiwen.com/subject/daprdltx.html