最近比较忙,所以老长时间没弄安卓了。但是打开之后运行程序出现错误:
[2013-07-23 15:18:26 - ] The connection to adb is down, and a severe error has occured. [2013-07-23 15:18:26 - ] You must restart adb and Eclipse. [2013-07-23 15:18:26 - ] Please ensure that adb is correctly located at 'C:Usersspretonandroid-sdkplatform-toolsadb.exe' and can be executed.
最后解决的办法是,
5037为adb默认端口 查看该端口情况如下:
netstat -aon|findstr “5037”
TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 8357
发现8357占用了 5037端口,继续查看8357的task,发现是tadb .如下所示
tasklist|findstr “8357”
tadb.exe 8357 Console 1 4,276 K
接下来问题就好解决了,在任务管理器kill掉tadb.exe ,重启一下运行eclipse,运行android程序,ok .
2.如果电脑上上安装 了豌豆荚,请先结束相关进程,重启运行就OK 了。