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

[2014-03-05 10:23:48 - SmartSystem] The connection to adb is down, and a severe error has occured.
[2014-03-05 10:23:48 - SmartSystem] You must restart adb and Eclipse.
[2014-03-05 10:23:48 - SmartSystem] Please ensure that adb is correctly located at ‘C:\Users\ibro1\android-sdks\platform-tools\adb.exe‘ and can be executed.

方法1.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,在任务管理器中停止“豌豆荚”及adb后重启adb或eclipse即可。
5.Eclipse重新卸载又装了一次,问题依然不变。
6.环境变量也没问题,在DOS命令中,输入android -h 也没问题。
 

解决问题:

百度google大家多说的是任务管理器 kill掉adb 或者重启adb server,但我任务管理器就没有adb ,猜测是某个程序占用了adb端口。于是按此思路查找。

解决步骤:

1.打开cmd界面,输入命令 netstat -ano  ,获取如下界面

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

其中发现了

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

进程id为4136的进程占用了adb的默认端口5037,这时候就发现了问题的所在

2.打开任务管理器,点击查看,进入选择列选项界面,如下

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

将pid的显示勾上The connection to adb is down, and a severe error has 
occured.

3.根据对应的pid将占用端口的进程结束,然后重启eclipse

4.恭喜你,应该可以正常使用了!!

The connection to adb is down, and a severe error has occured.,布布扣,bubuko.com

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

上一篇:AcWing 1214. 波动数列


下一篇:关于sql where id in 转换成数据类型 int 时失败(转)