Whenever I try to run adb devices
:
$ adb devices
* daemon not running. starting it now *
* daemon started su
First close All the things which use ADB. (Android Studio, Eclipse, Emulator(Bluestack as well)) and then do
adb kill-server
adb start-server
In my case I just got update of Studio.
As mentioned above, the problem comes due to a conflicting version of adb.exe shipped with HTC Sync. Removing it from PATH won't help, as htcUPCTLoader.exe that constantly runs in the background will still re-launch the wrong ADB version.
One solution would be to completely remove adb.exe from the HTC Sync folder, however this would break HTC Sync.
I've just coded a simple tool that replaces the old adb.exe with a stub that invokes the latest adb.exe from the SDK directory eliminating the conflicts (e.g. version 1.0.25 coming with HTC Sync and 1.0.29 with Android SDK).
The tool can be downloaded from http://visualgdb.com/adbfix
Helped for me: stop HTC Sync (in system tray) and rename HTC's adb.exe (C:\Program Files (x86)\HTC\HTC Sync 3.0\adb.exe).
OS: Ubuntu
There are more than 1 adb are running. Check the current adb:
which adb
Expected Output : ANDROID_SDK/platform-tools/adb
Normally the result will be:
/usr/bin/adb
Delete this older version by:
cd /urs/bin
sudo rm adb
If the device you're trying to interact with is a physical phone connected via USB, you can unplug it and plug it back and and it should work. Sometimes it just gets out of sync I think.
Okay, there is another instance of adb.exe distributed with "Lenovo Photo Companion". A friend of mine has a Lenovo Yoga notebook and had this software installed which includeded another adb.exe
Deinstalling it solved the problem.