错误截图:
[2014-10-25 19:59:26 - Android_L] ------------------------------
[2014-10-25 19:59:26 - Android_L] Android Launch!
[2014-10-25 19:59:26 - Android_L] The connection to adb is down, and a severe error has occured.
[2014-10-25 19:59:26 - Android_L] You must restart adb and Eclipse.
[2014-10-25 19:59:26 - Android_L] Please ensure that adb is correctly located at 'G:\adt-bundle-windows-x86-20131030\sdk\platform-tools\adb.exe' and can be executed.
百度之后搜索到的解决方法:
有很多种情况,所以也有很多解决方法:
1、任务管理器 kill掉adb 或者重启adb server(简单粗暴的解决方式~)
2、查看任务管理器没有adb,猜测是某个程序占用了adb端口(找出具体问题的方式~)
5037为adb默认端口 查看该端口情况如下:
查看:cmd —— netstat -aon|findstr "5037"
在我的电脑上输入的结果如下图:
发现8612占用了 5037端口,继续查看8612的task: tasklist|findstr "5408"
发现是kadb.exe占用,直接在任务管理器里面kill掉或采用命令行式:taskkill /f /im tadb.exe
Tip:1)、tasklist 可以找到任务管理器所有进程
2)、taskkilll /f /im 程序名1.exe /f /im 程序名2.exe .... 可以kill掉多个程序
3、重新开启adb
adb kill-server
adb start-serve