mac os x环境,ADB server didn't ACK

来源:互联网 发布:全民枪战qcwo5炎黄数据 编辑:程序博客网 时间:2024/06/10 00:17

有个老外总结的比较全面:

Try below steps:

  1. Close the Eclipse if running
  2. Go to the Android SDK tools directory in Command Prompt
  3. type adb kill-server
  4. then type adb start-server
  5. No error message is thrown while starting ADB server, then adb is started successfully.
  6. Now you can start Eclipse again.

it worked for me this way, Eclipse should be closed before issuing these commands.


按照操作报错:

Mac-mini:platform-tools$ ./adb kill-server

Mac-mini:platform-tools$ ./adb start-server

* daemon not running. starting it now on port 5037 *

cannot bind 'tcp:5037'

ADB server didn't ACK

* failed to start daemon *


分析原因:

使用adb时,若出上面的错,使用adb kill-server是没有用的,因为此时是其他进程的监听了abd端口(5037),而不是adb。


解决方法:

Mac-mini:platform-tools caijx$ lsof -P | grep ':5037' | awk '{print $2}' | xargs kill -9

Mac-mini:platform-tools caijx$ sudo lsof -i :5037

Mac-mini:platform-tools caijx$ ./adb start-server

* daemon not running. starting it now on port 5037 *

* daemon started successfully *








0 0
原创粉丝点击