adb的默认端口是5037,但是在开发过程中,会遇到端口被占的可能性,会出现下面的描述:

The connection to adb is down, and a severe error has occured.
HelloWorld] You must restart adb and Eclipse.
HelloWorld] Please ensure that adb is correctly located at 'E:\软件\开发\adt-bundle-windows-x86-20131030\sdk\platform-tools\adb.exe' and can be executed.

 

遇到这种问题,我是这样解决的:(电脑:Window7)

1、win + R 打开运行

2、输入cmd

3、输入 netstat -aon|findstr 5037

如下:

端口的各个状态是说明,参考:http://blog.chinaunix.net/uid-20773165-id-1847811.html

那么,如上,Listening的状态简单理解为正在占用或监听,所以,把占用这个端口的程序杀掉即可

4、输入taskkill /pid 6472 /f

如下图:

ok,如果你觉得不放心,可以在你关闭Eclipse之后,打开任务管理器,再把adb的进程树关掉即可。

哦,对了,听说直接关机也可以解决,没试过,不知道,有点暴力解决问题啊

 

posted on 2016-08-24 09:46  奋斗Ing。。。  阅读(1510)  评论(0编辑  收藏  举报