JACK错误 SSL error when connecting to the Jack server. Try 'jack-diagnose'

编译Android8.1的时候JACK报错

SSL error when connecting to the Jack server. Try 'jack-diagnose'

运行jack-diagnose

提示端口被占用的信息

Port XXXX is used by another process (pid=), please ensure to free the port or change port configuration in XXX

端口占用就换个端口吧。

更改~/.jack-settings

 

SERVER_PORT_SERVICE=27755
SERVER_PORT_ADMIN=27765

同步更改~/.jack-server/config.properties

jack.server.service.port=27755
jack.server.admin.port=27765

更改config.properties的权限为600

 chmod 600  ~/.jack-server/config.properties

继续编译,依然是报这个错误。 重新更改端口,错误依旧,因此错误原因可能不是这个。 

编辑/etc/java-8-openjdk/security/java.security 

找到TLSv1这行,把TLSv1, TLSv1.1,删除后保存

jdk.tls.disabledAlgorithms=SSLv3, TLSv1, TLSv1.1, RC4, DES, MD5withRSA, \

切换到Android编译源码项目目录:prebuilts/sdk/tools/

运行:./jack-admin kill-server ./jack-admin start-server

之后重新编译。 错误解决。

 

posted @ 2021-05-21 12:29  goolinli  阅读(3764)  评论(0编辑  收藏  举报