Advertisement

Communication error with Jack server (35), try 'jack-diagnose' or see Jack server log

阅读量:

Connection failure occurred with the Jack server (35). Consider running the jack-diagnose command or refer to the Jack server logs for further troubleshooting.

Connection failure occurred with the Jack server (35). Consider running the jack-diagnose command or refer to the Jack server logs for further troubleshooting.

报错原因

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

解决方法

进入$home/.jack、.jack-settings以及.jack-server/config.properties这三个位置,请您更改SERVER_PORT_SERVICE和SERVER_PORT_ADMIN的服务器端口配置,并在完成设置后进行保存操作。

当权限不足时,请运行以下命令来调整权限:chmod 600 .jackchmod 600 .jack-settingschmod 700 .jack-server;然后检查 jack 是否已启动。

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

jack-admin server-log命令来查找log所在目录

在Android 7.0项目的开发环境中,在编译构建前,请执行以下操作:

  1. 运行bule@sky:~/workspace/jianwen.fu/jianwen.fu/V65_An7/prebuilts/sdk/tools$
  2. 启动服务器
  3. 终止服务器
  4. 列出当前运行的所有服务器
  5. 解除当前运行的服务器
  6. 在j32模式下显示所有命令并重定向到mm.out文件
  7. 安装jack-launcher.jar和jack-server-4.8.ALPHA.jar到当前服务器位置
  8. 执行dump-report操作
  9. 执行dump-re操作

问题:
No Jack server running. Try 'jack-admin start-server'

解决方案:
通过查看文件 $HOME/.jack-server/logs/jack-server-0-0.log:

the application requires rw permissions for the './config.properties' file, but it currently has rwx permissions.

Caused by: java.io.IOException: './config.properties' must have rw permissions but current permissions are rx.

... 2 more

归因于配置文件权限设置不当导致故障出现,在具体操作中只需将$HOME/.jack-server/config.properties这一特定目录下的文档权限自rwx调整为rw即可完全解决问题

全部评论 (0)

还没有任何评论哟~