Reputation: 6496
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:
furthermore I unsuccessfully tried out some advice from Mr. Google:
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 ?
Upvotes: 26
Views: 62990
Reputation: 814
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
Upvotes: 1
Reputation: 1169
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.
Upvotes: 3
Reputation: 31
Following works for me every time: go to File->Invalidate Caches/Restart select Invalidate and Restart
And, You are good to go.
Upvotes: 0
Reputation: 2184
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)
Upvotes: 0
Reputation: 21
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?
Upvotes: 1
Reputation: 11
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.
Upvotes: 1
Reputation: 2599
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.
Upvotes: 0
Reputation: 3828
On OSX helped:
Kill all processess using 5037 port
sudo lsof -i |grep 5037
sudo kill PID_NUMBER
Run adb devices from console
adb devices
Upvotes: 17
Reputation: 998
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.
Upvotes: 0
Reputation: 5731
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.
Upvotes: 0
Reputation: 61
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
Upvotes: 5
Reputation: 1
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.
Upvotes: 0
Reputation: 73
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).
Upvotes: 1
Reputation: 10520
I finally just restarted the computer, and that solved the issue for me.
Upvotes: 0
Reputation: 11
Try this,
adb kill-server
adb root
The prompt should say adbd is already running as root
.
That should fix it.
Upvotes: 1
Reputation: 6496
Meanwhile the emulator is working again. I cannot definetly say what solved the problem. What It could be a combination of two things:
Finally it could be a Windows 8 issue which I don't understand.
Upvotes: 8
Reputation: 524
Kill the adb.exe with a command prompt. Open a command prompt were your adb.exe is located and type adb kill-server
Upvotes: 3