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
To stop the adb server, use the adb kill-server command. You can then restart the server by issuing any other adb command.
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.
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.
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).
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
Had the same problem, it seems that my security solution was blocking adb.exe
this is not the right folder for adb : lately adb has moved from /tools to /platform-tools in the sdk folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With