Probleam with running an application in the emulator

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Probleam with running an application in the emulator

Postby Amit_Saini » Sat May 02, 2009 10:27 am

Hi all,

When i am running an application in the emulator first time than it will work fine but second time eclipse give the following error -

[2009-05-02 14:47:33 - HelloAndroid] ------------------------------
[2009-05-02 14:47:33 - HelloAndroid] Android Launch!
[2009-05-02 14:47:33 - HelloAndroid] Connection with adb was interrupted.
[2009-05-02 14:47:33 - HelloAndroid] 0 attempts have been made to reconnect.
[2009-05-02 14:47:33 - HelloAndroid] You may want to manually restart adb from the Devices view.

Please tell me the reason of this error.

Thank in advance.
Once Poster
Once Poster
Posts: 1
Joined: Wed Apr 29, 2009 10:48 am
Location: New Delhi


Postby Dreamchaser » Mon Jan 04, 2010 5:03 pm

Is there anyone who has any comment on this? I am also having the same issue here :(
I always have to restart the eclipse first before getting the application run normally again
Once Poster
Once Poster
Posts: 1
Joined: Mon Jan 04, 2010 4:56 pm

Postby freewheelnat » Thu Feb 25, 2010 9:11 pm

I've been getting the same error recently too, though it used to work well before. Any idea as to what is happening?
Posts: 40
Joined: Sat Aug 08, 2009 11:48 am
Location: London

Possible solution for Linux users

Postby equitas » Wed Apr 21, 2010 12:27 pm

Just in case anyone Googles this thread looking for an answer.

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: Select all
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: Select all
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
Once Poster
Once Poster
Posts: 1
Joined: Wed Apr 21, 2010 12:23 pm


Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: Google Feedfetcher, iconfearwell and 5 guests