1. Check out our companion app, Forums for Android! Download from Google Play

Eclipse DDMS repeated connection attemps

Discussion in 'Application Development' started by SgtMe, Mar 16, 2010.

  1. SgtMe

    SgtMe New Member
    Thread Starter

    Mar 16, 2010
    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!



  2. Equitas

    Equitas New Member

    Apr 21, 2010
    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 (Text):
    1. 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 (Text):
    1. 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.

    Equitas IT Solutions
    Equitas IT Solutions | about us

Share This Page