Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse issue - Launch error: Failed to connect to remote VM. Connection timed out

Tags:

android

I get the message

Launch error: Failed to connect to remote VM. Connection timed out.

each time i debug my application on read device. I added to the AndroidManifest the:

<uses-permission android:name="android.permission.SET_DEBUG_APP"/>

and

android:debuggable="true" 

But still this is not helping. When i reset the Eclipse ( close it and open it again ) this problem sometimes solved. Its really hard to work in this way - How can i solve this problem?

like image 325
Yanshof Avatar asked Dec 15 '11 11:12

Yanshof


3 Answers

Just uninstall the app from your device and run the debug again.

like image 25
Kareem Avatar answered Oct 10 '22 00:10

Kareem


I sometimes have this problem after I disconnect phone from the computer and reconnect again.

I do CTRL + ALT + DELETE and kill all adb.exe processes and it fixes it for me.

Please try if this also works for you.

Note: I find this faster than restarting adb from command line/eclipse

like image 178
Caner Avatar answered Oct 10 '22 00:10

Caner


Just had this bug, tried several things, finally, changing the port worked. I was at port 8600, changed to 8601 and connects instantly! You can find this setting in Windows->Preferences->Android->DDMS. Change default port, apply, and restart Eclipse.

like image 32
Tony Tieger Avatar answered Oct 10 '22 01:10

Tony Tieger