您的位置:首页 > 移动开发 > Android开发

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

2015-06-27 12:43 344 查看
运行程序时,出现如下错误

[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号的进程,并关闭

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: