Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adb server not responding [duplicate]

Tags:

android

adb

I am a Android newbie. I guess I might be doing something stupid here. I have started the Virtual Device and I see that adbd daemon is running from the Terminal Emulator. When I run adb devices I get the following error:

C:\Program Files\Android\android-sdk\tools>adb devices
* daemon not running. starting it now on port 5037 * 
ADB server didn't ACK
* failed to start daemon * 
error: cannot connect to daemon

No other process is using port 5037. What am I doing wrong? Here are the packages I have installed -

1) Android SDK Tools, revision 10
2) Android SDK Platform-Tools, revision 3
3) SDK Platform Android 2.3.3, API 10, revision 1
like image 662
Bruce Avatar asked Mar 17 '11 18:03

Bruce


People also ask

How do I kill adb daemon?

To stop the adb server, use the adb kill-server command. You can then restart the server by issuing any other adb command.

Why adb shell not working?

Make sure USB debugging is enabled and USB is physically plugged in. Make sure everything is ok with the ADB drivers, double-check the device manager. Check if the device appears in "adb devices", make sure its authorized on the device. Try actual adb shell and other relevant adb stuff.

How do I remove offline device from adb?

Disconnect the USB connection—or turn off the device's Wi-Fi if you're connected over Wi-Fi. Close Android Studio/Eclipse/other IDE. Run adb kill-server to ensure adb is not running. Restart your Android device.


4 Answers

This will occur normally,if abd is not able to launch properly and didn't exit when adb kill-server is executed.

So if in Windows 1. Go to Task Manager (CTRL+ALT+DEL) 2.look for adb.exe and end the process. Now restart the emulator ,should work properly.

additionally you can close and launch the development environment also (eg: Eclipse or NetBeans).

like image 67
omni.present Avatar answered Oct 17 '22 11:10

omni.present


I suspect the problem is cause of many adb instances (in windows) , i usually face this problem cause i don't turn off my system so the adb process may not end properly.

So open task manager choose Process tab just search for adb.exe, right click on it and choose End Process Tree rather than just End Process

like image 26
Vins Avatar answered Oct 17 '22 10:10

Vins


Had the same problem, it seems that my security solution was blocking adb.exe

like image 2
Bodhi Avatar answered Oct 17 '22 12:10

Bodhi


this is not the right folder for adb : lately adb has moved from /tools to /platform-tools in the sdk folder.

like image 1
olamotte Avatar answered Oct 17 '22 10:10

olamotte