在运行android程序时控制台输出的错误显示
[2014-05-18 01:31:37 -Sdcp] Android Launch!
[2014-05-18 01:31:37 -Sdcp] The connection to adb is down, and a severe error has occured.
[2014-05-18 01:31:37 -Sdcp] You must restart adb and Eclipse.
[2014-05-18 01:31:37 -Sdcp] Please ensure that adb is correctly located at 'C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe' and can be executed.
解决措施:
方法一:重启Eclipse里面
方法二:运行cmd,找到错误中指定的adb位置,也就是SDK配置的位置,依次输入
adb kill-server
adb start-server
方法三:
运行cmd,输入netstat –ano然后,找到5037端口,查看是否5037是否被占用了。
然后输入tasklist|findstr “7656(被占用的端口)”
然后看到的在运行的服务,在任务管理器把这个进程关闭。