"The connection to adb is down, and a severe error has occured."错误总结

来源:互联网 发布:淘宝买大麻种子犯法吗 编辑:程序博客网 时间:2024/06/05 23:39

        最近再次碰到了"The connection to adb is down, and a severe error has occured."这个报错,之前碰到过这个问题解决了,就没有理会,这次碰到用原来的方法解决不了,搞了半天终于搞定,今天简单做一个总结。

一.报错内容如下:

The connection to adb is down, and a severe error has occured. 
解决办法:

cmd跳到sdk安装路径的platform-tools文件路径下 (若添加将sdk的路径到环境变量中,则直接在cmd下执行下面命令即可)
adb kill-server 
adb start-server 


二.报错内容如下:

The connection to adb is down, and a severe error has occured. [2013-09-06 09:36:56 - HelloOPone] You must restart adb and Eclipse. [2010-09-01 09:36:56 - HelloOPone] Please ensure that adb is correctly located at 'D:\Program Files\android-sdk-windows\platform-tools' and can be executed. 
解决办法:

1.启动任务管理器,查看adb.exe是否运行,若正在运行,cmd中adb kill-server,然后adb -startserver。

2.方法1不管用,那么在任务管理器中杀死adb.exe,然后重启Eclipse。

3.方法1和2都不管用,那么查看最后一句报错中:platform-tools中是否有adb.exe(如果相关路径下面没有platform-tools文件夹 ,就要新建新建一个文件夹,并且把tools中的文件全部复制到platform-tools中)

4.启动任务管理器,如果找不到adb.exe,有可能是你安装了豌豆荚或者手机的链接工具(现在如果你安装qq的最新版本,且在启动qq前手机已经插上了电脑,则qq也会自动启动一个tadb.exe的进程,占用adb.exe的端口5037,导致eclipse的adb无法启动。。),它在系统启动时占用了adb.exe的端口5037。这时需要启动cmd,输入命令:

netstata -ano

如下图:


查看占用5037端口的进程的PID(进程号),然后启动任务管理器将它结束掉。然后重启eclipse,如果还不行检查一下是不是符合上面的三种情况。


一般"The connection to adb is down, and a severe error has occured."这个报错就是上面的几种情况,如果都不行,可能要重装一下eclipse和SDK了。如果在遇到上面新情况就再更新了。

原创粉丝点击