Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old March 16th, 2010, 04:12 PM   #1 (permalink)
New Member
 
Join Date: Mar 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Question Eclipse DDMS repeated connection attemps

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

SgtMe is offline  
Last edited by SgtMe; March 16th, 2010 at 04:14 PM.
Reply With Quote
Sponsors
Old April 21st, 2010, 07:38 AM   #2 (permalink)
New Member
 
Join Date: Apr 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Possible solution for Linux users

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
Equitas is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Support help -- too many pattern attemps joemonkey Sony Ericsson Xperia X10 10 October 11th, 2010 11:54 AM
Debugging an Android application outside of Eclipse : ddms not connecting rileyrg Application Development 1 August 11th, 2010 06:47 PM
why won't DDMS launch for me ? gwcaton Android Applications 3 July 30th, 2010 06:58 PM
Support repeated loss of data connection pseudoprime Samsung Moment 19 July 29th, 2010 11:36 PM
Too Many Pattern Attemps deltron G1 - Support 19 September 17th, 2009 03:15 PM



All times are GMT -5. The time now is 02:52 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo


SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.