24

When I try to test my Android application with an android emulator as always I now suddenly get an error message. I'm working with Windows 8. So far I tried the following things which unfortunately could not solve the problem:

  • reinstalling eclipse with android adt
  • reinstalling java
  • installing "android studios" first solved the problem but after one day mysteriously also here adb, stopped working with the error message given in the title " ADB not responding ...

furthermore I unsuccessfully tried out some advice from Mr. Google:

  • Stopping adb.exe via task-manager and restarting eclipse / android studios
  • "adb kill-server" then "start-server" via command prompt
  • setting the path to adb.exe as an environment variable
  • switching off any antivirus or firewall
  • starting the IDEs as an administrator
  • updating the IDEs

The only thing I can remember doing which may have destroyed adb on my computer for all times: I connected my motorola smartphone to my laptop and installed the motorola usb drivers but as I said the adb also won't work with the emulator.

Any help would be kindly appreciated. The issue bothers me for more than an entire day now. Maybe someone had similar problems on Windows 8 ?

mcExchange
  • 4,998
  • 12
  • 43
  • 81
  • You could go and try to delete the motorola driver if you've got the idea that is the one messing things up – Stefan de Bruijn Jul 25 '13 at 07:27
  • The only thing I found was an "ADB Interface" in the windows device manager. I deleted it. No effect. – mcExchange Jul 25 '13 at 08:23
  • As I said: I already got the problem when using Eclipse with Android ADT before I installed any motorola drivers. Seems more that anyhow the IDE cannot really find the adb.exe, altough this normally works after a standard installation. But neither in "Eclipse" nor in "Android Studios" I can find any ADB settings in order to repair / change it. – mcExchange Jul 25 '13 at 08:30
  • This still happens on Ubuntu, so not related to Windows. – So Many Goblins Mar 06 '14 at 11:21

18 Answers18

16

On OSX helped:

  • Close Android Studio
  • Kill all processess using 5037 port

    sudo lsof -i |grep 5037

    sudo kill PID_NUMBER

  • Run adb devices from console

    adb devices

Michał Jurczuk
  • 3,468
  • 4
  • 28
  • 53
7

Meanwhile the emulator is working again. I cannot definetly say what solved the problem. What It could be a combination of two things:

  • Deleting the hidden ".android" folder under C:\Users... (Probably there was some malfunctioning automatically created code)
  • Deleting and recreating the Path variable to the folder with adb.exe ( ...\sdk\platform-tools\;)

Finally it could be a Windows 8 issue which I don't understand.

mcExchange
  • 4,998
  • 12
  • 43
  • 81
5

Try this,

Open a command prompt with administration permission and type

netsh interface tcp set global autotuninglevel=disabled

This worked for me

Edit: Windows only

Hanju Kim
  • 61
  • 1
  • 4
3

Kill the adb.exe with a command prompt. Open a command prompt were your adb.exe is located and type adb kill-server

Billy Korsen
  • 524
  • 2
  • 6
  • 18
2

Maybe HTTP Proxy blocked the localhost 127.0.0.1:5037
If you have config the HTTP Proxy, make sure to exclude the localhost like picture below

Also, port can also be blocked by the firewall and anti-virus firewall, please notice as well.

enter image description here

fantouch
  • 1,029
  • 12
  • 10
1

Try this,

  1. at the prompt try adb kill-server
  2. Start one of your AVDs
  3. at the prompt try adb root

The prompt should say adbd is already running as root.

That should fix it.

Josha Inglis
  • 1,008
  • 11
  • 21
Math-geek
  • 11
  • 2
1

In case it helps anyone else, for me the problem was related with the USB hub that the tablet was plugged into on the computer (unplugging the webcam which was in use fixed it).

1

I got the same error. Don't worry. I have an solution. Go to Task Manager. Kill the process called adb.exe. You will find 2 or 3 processes. Kill all of them. You are done. It will work.

1

I have the same problems. Verify port 5037 is free and ports 5555 to 5585 are available and never used by another process.

"ADB server sets up connections to all running emulator/device instances. It locates emulator/device instances by scanning odd-numbered ports in the range 5555 to 5585"

FROM: http://developer.android.com/tools/help/adb.html

To find out which process is listening on a port on Windows yo can use:

C:> netstat -an -o

FROM: How can you find out which process is listening on a port on Windows?

Community
  • 1
  • 1
erivas
  • 11
  • 1
  • 2
1

I had the same problem, here is my simple fix:

-Go to task manager in windows, look for adb.exe, and kill it

-Go to command prompt, and tap adb devices ==> it will automaticaly start adb daemon

Nourdine Alouane
  • 763
  • 11
  • 19
0

I finally just restarted the computer, and that solved the issue for me.

coder
  • 10,172
  • 17
  • 67
  • 122
0

Uninstall HTC Sync. Or disable it somehow.

Ozan Atmar
  • 260
  • 1
  • 2
  • 10
0
  • Try to open adb from command prompt from directory location as <sdk>\platform-tools,

  • If adb file is missing try to re-install Android SDK with latest version, And try to run again..

I think issues will solved, by this procedure.

Isaac G Sivaa
  • 1,221
  • 4
  • 14
  • 32
0

I saw this on a Mac OS X.

I shut down Android Studio and ran adb get-state in the terminal. When I started Android Studio back up, the warning had gone away.

BTW, I did just try restarting Android Studio without any luck. I am sure a restart of OS would have fixed it too.

codingjeremy
  • 3,877
  • 1
  • 29
  • 34
0

The same thing with the Asus Sync utility (with the both our Transformer's 700 and 701). I think there is a USB-port conflict between ABD driver and Sync utility.

Exit from Sync utility resolve the problem.

A. Petrov
  • 550
  • 6
  • 14
0

Looks like this could be caused by a bunch of different issues. This just happened to me because I had my android phone device plugged in for USB debugging, then after a few hours (and multiple android studio/phpstorm restarts) I had to do unplug the device manually. Things started working again after unplugging.

John D.
  • 2,129
  • 2
  • 21
  • 36
0

I have faced this problem few days ago. When I opened my task manager it showing me two adb runnig. It may be because of I am using mobogenie for connecting my android phone for debugging application. This problem is because of moboginie and adt port conflict. then I have followed following procedure to sort out this issue.

!) close eclipse 2) Go to task manager and kill all adb processes. 3) Now go to platform-tools in android sdk 4)press shift+right click mouse and select "open command window here" option 5) type

adb kill-server adb start-server

6)if server sucessfully started then start eclipse and then connect your phone (Remember dont connect your phone before starting eclipse)

Amol Suryawanshi
  • 1,880
  • 17
  • 27
0

Following works for me every time: go to File->Invalidate Caches/Restart select Invalidate and Restart

And, You are good to go.

Dhawan Gupta
  • 1
  • 1
  • 1
  • 2