Possible Duplicate:
Eclipse Error: “Failed to connect to remote VM”
When I debug my application I get frequently Launch error: Failed to connect to remote VM even If I try again it doesn't help, I need to restart Eclipse.
Edit
Not sure yet fully if the symptoms 开发者_C百科have to do with the fact that I get this error only when I launch Debug without a code modification. Whenever I do a modification to the source code and hit Debug it goes through, but if I don't it doesn't.I think this is a bug in the eclipse plugin, just make a modification to the code and it will work.
I solved this problem by resetting ADB in eclipse. Try the following:
- Disconnect the device from USB.
- Select the DDMS Perspective in Eclipse.
- On the Devices tab of the perspective, select the menu then reset ADB.
- Reconnect the device.
精彩评论