«

【MAC版】Android ADB server didn't ACK * failed to start daemon *解决办法

时间:2024-3-2 19:49     作者:韩俊     分类: Android


运行程序时,出现如下错误

[2015-06-27 12:24:34 - CustomKeyBoard] The connection to adb is down, and a severe error has occured.
[2015-06-27 12:24:34 - CustomKeyBoard] You must restart adb and Eclipse.
[2015-06-27 12:24:34 - CustomKeyBoard] Please ensure that adb is correctly located at '/Users/Development/sdk/platform-tools/adb' and can be executed.

查询了一下可能原因是没配置adb,如下文章教了怎么配置

《MAC 配置 Android adb 环境变量》

配置了后还是不能运行程序,终端运行adb也不成功

bogon:~ azz$ adb shell
adb server is out of date. killing…
cannot bind ‘tcp:5037’
ADB server didn’t ACK
* failed to start daemon *
error:

又查询了一下,可能是5037的端口号被占用,以下链接讲解了WINDOWS版如何解决该情况
《Android ADB server didn’t ACK * failed to start daemon * 简单有效的解决方案》

那么接下来讲下mac版如何操作:
1.在终端输入lsof -i tcp:5037查看占用5037端口的pid号

2.去任务管理器(应用程序-其他-活动监视器)找到对应pid号的进程,并关闭

        <p>版权声明:本文为博主原创文章,未经博主允许不得转载。</p>

标签: android

热门推荐