在运行Android程序是出现这个错误
[2014-05-03 14:44:09 - Calendar] The connection to adb is down, and a severe error has occured.
[2014-05-03 14:44:09 - Calendar] You must restart adb and Eclipse.[2014-05-03 14:44:09 - Calendar] Please ensure that adb is correctly located at 'D:\eclipse_with_android\android-sdk-windows\platform-tools\adb.exe' and can be executed.
原因是adb没有启动。
用命令行进入Android的sdk下platform-tools目录下,输入:
在输入:
发现无法启动ADB,原因是ADB的端口被某个进程占用了,
通过命令发现时5037端口被占用,查看是哪个进程占用了该端口:
发现时进程号为5768的进程占用了该端口,用资源管理器杀死这个进程,然后重新启动adb
ok,解决问题!