• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Eclipse DDMS repeated connection attemps

SgtMe

Lurker
Hi. I really want to start developing for Android, but I have a big problem. I'm using Eclipse (Java Dev Version), fully set up with Android. I made a project fine, and with the code that comes up, I click run. I set up an AVD, and it should work fine. However, DDMS has an error.

"Failed to initialize monitor thread."


Then it makes a connection attempt every second or so. I try to run my Android app, but it is interrupted by the DDMS thing (I think). It also says that I may want to restart my ADB from the devices view? Ich bin noob so please help me!

Thanks
Mark
 
If you are running Linux (I'm running Debian but this will work on the Ubuntu too) you may find that ipv6 is bound and that is preventing eclipse and the ddms from connecting to the adb. To check if ipv6 is running, enter this into a terminal/shell:
Code:
sudo sysctl -a|grep net.ipv6.bindv6only
if you are then given a line saying "net.ipv6.bindv6only = 1" then ipv6 bind only is enabled. To disable it enter this in a terminal:
Code:
sudo sysctl -w net.ipv6.binv6only=0
That will disable it. Now restart eclipse and try again. If that works then it was indeed ipv6 bindings that caused the issue. To permanently disable it edit the file /etc/sysctl.d/bindv6only and change the value from 1 to 0.

HTH
--
Equitas IT Solutions
Equitas IT Solutions | about us
 
Back
Top Bottom