首页 > 代码库 > Android基础(2)error:The connection to adb is down, and a severe error has occured.

Android基础(2)error:The connection to adb is down, and a severe error has occured.

出现:The connection to adb is down, and a severe error has occured.

启动android模拟器时.有时会报The connection to adb is down, and a severe error has occured.的错误

(1).先把eclipse关闭.

(2)cmd 命令进入android\adt-bundle-windows\sdk\platform-tools文件中

(3)键入命令adb kill-server ,如果adb关闭了会提示:
         * server not running *。

(4)键入命令:adb start-server 如果成功的话不会有任何提示,没有成功的话会有多种错误。

adb server is out of data . killing ...

ADB server didn‘t ACK

*failed to start daemon*

分析:出错的原因是adb的端口被其他程序的进程占领了,所以要做的就是找到并kill该进程。

在cmd中执行adb nodaemon server,查看adb的端口号是多少,一般情况下是5037(why?应该软件使用的端口号是固定的)。找到后在任务管理器中关闭该进程即可。

Android基础(2)error:The connection to adb is down, and a severe error has occured.