ADB server version (36) doesn't match this cli

2020-01-24 20:22发布

After installing the Android O preview on a test device my ADB stopped working and started giving me this error.

adb server version (36) doesn't match this client (39); killing... adb E 03-27 08:01:55 2925 147690 usb_osx.cpp:333] Could not open interface: e00002c5 adb E 03-27 08:01:55 2925 147690 usb_osx.cpp:294] Could not find device interface error: could not install *smartsocket* listener: Address already in use ADB server didn't ACK * failed to start daemon * error: cannot connect to daemon

The only answers I have come across on this issue referred to Genymotion being out of sync with ADB but I don’t use Genymotion. Any help would be greatly appreciated. I have already wiped and reinstalled Android Studio as well as all of its tools and settings yet seem to still have this issue.

标签: android adb
9条回答
我想做一个坏孩纸
2楼-- · 2020-01-24 21:22

First of all, please remove the "{Not using Genymotion}" from the title. It distracts readers like me who don't know what Genymotion is. The absurd here is that you got one answer with 21 points which says "go to GenyMotion settings"...

The main point that all the others have missed, is that you will get this error when you have a running adb process in the background. So the first step is to find it and kill it:

ps aux | grep adb
user          46803   0.0  0.0  2442020    816 s023  S+    5:07AM   0:00.00 grep adb
user          46636   0.0  0.0   651740   3084   ??  S     5:07AM   0:00.02 adb -P 5037 fork-server server

When you find it, you can kill it using kill -9 46636.

In my case, the problem was an old version of adb coming from GapDebug. If you got this with GapDebug, get out of it and then do

adb kill-server
adb start-server

because with GapDebug in the background, when you kill the adb server, GapDebug will start its own copy immediately, causing the start-server to be ignored

查看更多
Evening l夕情丶
3楼-- · 2020-01-24 21:25

I had the same problem with Android Studio - adb server version (37) doesn't match this client (39). I fixed by the following solution :

In Android Studio go to Tools -> Android -> SDK Manager

In the SDK Tools tab untick Android SDK Platform-Tools, click Apply to uninstall.

I then renamed the Platform-Tools folder to Platform-ToolsOld

Then back in the SDK Manager re-tick the Platform-Tools to re-install.

查看更多
叼着烟拽天下
4楼-- · 2020-01-24 21:27

To add yet another potential solution, Helium by Clockworkmod has it's own version of ADB built in that kept being started. Exiting the Helium Desktop application resolves the issue.

查看更多
登录 后发表回答