问题描述:
当我们向android虚拟机发布程序的时候出现如下错误:
[2013-11-03 00:31:13 - MySony]------------------------------
[2013-11-03 00:31:13 - MySony]Android Launch!
[2013-11-03 00:31:13 - MySony] Theconnection to adb is down, and a severe error has occured.
[2013-11-03 00:31:13 - MySony] Youmust restart adb and Eclipse.
[2013-11-03 00:31:13 - MySony] Pleaseensure that adb is correctly located at'G:\Android\adt-bundle-windows-x86_64-20130522\sdk\platform-tools\adb.exe' andcan be executed.
解决办法:
首先打开cmd转到eclipse开发工具的安装目录中sdk文件夹下的tools文件夹
然后输入命令:netstat -aon|findstr "5037"
会看到5037端口被19056占用了
然后输入TASKLIST | findstr "19056
会看到是tadb.exe这个程序占用了5037端口
下面打开任务管理器找到这个进程,将其结束后,重新启动开发工具,即可