JACK报错处理&多用户编译

报错内容

/bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.11.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.11.ALPHA.jar 4.11.ALPHA 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-4.32.CANDIDATE.jar 4.32.CANDIDATE || exit 47 )"
Jack server already installed in "/home/system1/.jack-server"
Communication error with Jack server (35), 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'

报错原因

jack不支持多用户同时编译,所以经常出现jack server报错的现象

解决方法

编辑 $home/.jack$home/.jack-settings$home/.jack-server/config.properties,修改SERVER_PORT_SERVICESERVER_PORT_ADMIN的端口号,然后保存。

JACK报错处理&多用户编译_第1张图片
.jack文件示例

注意检查文件的权限


文件的正确权限示例

如果权限不对可以执行下面的命令修改权限:

chmod 600 .jack
chmod 600 .jack-settings
chmod 700 .jack-server

查看jack server是否启动

cd prebuilts/sdk/tools ./jack-admin start-server/stop-server

备注

有时候报错时,当前用户下未生成.jack文件,可以从其它正常的环境中拷贝一个过来,然后按上述修改端口号再进行编译验证。

报错的处理

建议先清理.jack-server/logs/内的文件,然后再编译验证,出错后,可以查看此路径下的日志文件中的具体错误,再根据错误进行处理。

你可能感兴趣的:(JACK报错处理&多用户编译)