When I debug my application, I often get a startup error: could not connect to the remote virtual machine

Possible duplicate:
Eclipse Error: "Could not connect to remote virtual machine"

When I debug my application, I often get a startup error: it was not possible to connect to the remote virtual machine, even if I try again, this will not help, I need to restart Eclipse.

Edit
Not sure, but completely, if the symptoms are related to the fact that I get this error only when I run Debug without modifying the code. Whenever I make a modification of the source code and hit Debug, it passes, but if I do not.

+5
source share
2 answers

I think this is a bug in the eclipse plugin, just make changes to the code and it will work.

+2
source

I solved this problem by dropping ADB in eclipse. Try the following:

  • Disconnect the device from USB.
  • Choose the DDMS perspective in Eclipse.
  • On the "Devices" tab, in the future, select the menu, and then reset ADB.
  • Connect the device.
+1
source

Source: https://habr.com/ru/post/903865/


All Articles