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

  • A+
所属分类:Android异常

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

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 *

avatar