运行android项目时,报一下错误:
[2012-10-19 17:49:14 - AndroidTest] ------------------------------
[2012-10-19 17:49:14 - AndroidTest] Android Launch!
[2012-10-19 17:49:14 - AndroidTest] The connection to adb is down, and a severe error has occured.
[2012-10-19 17:49:14 - AndroidTest] You must restart adb and Eclipse.
[2012-10-19 17:49:14 - AndroidTest] Please ensure that adb is correctly located at 'C:\Program Files\Android\android-sdk\platform-tools\adb.exe' and can be executed.
解决办法:
Try below steps:
- Close the Eclipse if running
- Go to the Android SDK platform-tools directory in Command Prompt
- type
adb kill-server
(Eclipse should be closed before issuing these commands) - then type adb start-server
- No error message is thrown while starting ADB server, then adb is started successfully.
- Now you can start Eclipse again.
it worked for me this way.
Restart your phone as well!