views:

1582

answers:

2

I am running Windos 7 and Eclipse 3.5 and I don't know why I keep getting this error. When I try run the program it gives me:

[2010-02-13 23:09:41 - HelloAndroid]The connection to adb is down, and a severe error has occured.
[2010-02-13 23:09:41 - HelloAndroid]You must restart adb and Eclipse.
[2010-02-13 23:09:41 - HelloAndroid]Please ensure that adb is correctly located at 'C:\Users\Mohit\Documents\AndroidSDK\tools\adb.exe' and can be executed.

I even tried runing Eclipse and adb.exe as admin. What is going on? How can I fix this and start making Android apps?

A: 

As illustrated by this thread, you may need to kill an exisiting abd process, or unblock the 5037 port (remnants of previous adb start attempts).

Try closing Eclipse, issuing a 'C:\Users\Mohit\Documents\AndroidSDK\tools kill-server' command from terminal and retrying.
If that still doesn't work, you could try opening Activity Monitor to see if there are any existing adb processes running, and kill them.

Hi, it's OK now, I'saw with the nestat - a command line that theer was several processus on the 5037 port. The port wich serves for the emulator.
Thanks

VonC
Well I tried to kill and start the server. So I guess the problem is the blocked 5037 port. So how do I unblock it? (I am running Windows 7 Pro)
Mohit Deshpande
@Mohit: since `netstat -o` does include the process id (PID) in its output, you could try and kill any process linked to that port.
VonC
Weird, port 5037 is not listed. The closest thing to it would be the 5040 port.
Mohit Deshpande
@Mohit: depending on your configuration, the port number might be different. A tool like a Process Explorer (http://technet.microsoft.com/fr-fr/sysinternals/bb896653.aspx) can show you if the `PID` associated with that port number is a `abd` one.
VonC
adb is not even listed???
Mohit Deshpande
`netstat` will not list directly `abd`. Did you mean your Process Explorer does not display any `abd` process?
VonC
Both do not list adb.
Mohit Deshpande
A: 

Thank you. I close my firewall, It work. :)

surdet