adb server version doesn't match...

常常是在安装并启动了Android模拟器(如genymotion、夜神)或者连接工具客户端(去airdroid)的时候,

使用adb devices命令查看连接的设备,会出现如下报错:

List of devices attached
adb server version (36) doesn't match this client (40); killing...
could not read ok from ADB Server
* failed to start daemon
error: cannot connect to daemon

adb server version doesn't match...

这是因为模拟器或者连接工具里用到了adb.exe,与本地adk下的adb.exe版本不匹配

解决方法:

把adk-platform-tools下的adb.exe复制到模拟器或者连接工具安装目录下,替换其本身的adb.exe,

如夜神的adb.exe在bin目录下

adb server version doesn't match...

重启模拟器,再次执行adb devices 就可以获取其设备信息啦

 

上一篇:Table 'jiang.hibernate_sequence' doesn't exist


下一篇:27. Remove Element(js)