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

报错信息如下:

10:16 adb server version (31) doesn’t match this client (40); killing…

10:16 could not read ok from ADB Server

10:16 * failed to start daemon

10:16 error: cannot connect to daemon

10:16 ‘D:\Users\lulei\AppData\Local\Android\sdk\platform-tools\adb.exe start-server’ failed — run manually if necessary

错误原因: 

adb版本不对 

因为我升级了SDK,导致sdk\platform-tools\adb.exe文件更新升级了,而手机客户端不能连接上去

(用百度和google搜索,说是5037端口被占用,提供的解决方案是在cmd中用netstat -aon|findstr 5037指令查找占用5037端口的进程,但是尝试了一下,并没有程序占用该端口,所以这个方法不可行) 

    原文作者:镌刻心语
    原文地址: https://www.jianshu.com/p/13083a9ea1bf
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞