adb server version (31) doesn't match this client (39);

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhaostrong/article/details/80190329

问题描述

手机可以连接电脑 但是运行adb devices (查看Android 设备)提示adb停止运行
这里写图片描述
窗口显示:
adb server version (31) doesn’t match this client (39);
其实这段话代表的是adb 版本不一致导致。

 adb devices
List of devices attached
adb server version (36) doesn't match this client (39); killing...
adb E 08-01 11:51:28 16094 1798575 usb_osx.cpp:333] Could not open interface: e00002c5
adb E 08-01 11:51:28 16094 1798575 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

原因总结

网上的总结有:
1.开了模拟器Genymotion
genymotion中的adb命令被占用冲突了(往往是被360手机助手占用了adb的端口所致),直接打开genymotion的Setting,切换到第四个标签页(ADB),选择Use custom Android Sdk tools,然后选择我们开发使用的Sdk路径即可。

2.Chrome调试webview占用了端口
Close all chrome://inspect/#devices windows/tabs

但是我的问题是:genymotion的adb版本和Android studio中版本不一致导致。原因是我卸载了genymotion但是我没有重启电脑而爆出来得异常。搞了一个小时,最后重启了一下电脑才好了。

参考:https://blog.csdn.net/danhantao/article/details/76519026

猜你喜欢

转载自blog.csdn.net/zhaostrong/article/details/80190329