在终端输入adb命令,出错如下:
localhost:work zhangyg$ adb devices
List of devices attached
adb server version (32) doesn't match this client (36); killing...
error: could not install *smartsocket* listener: Address already in use
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
错误原因是选择了使用Genymotion的Android tools,所以导致与Android SDK下的adb程序冲突。
在Genymotion的主界面点击【Settings】如下图:
选择【Use custom Android SDK tools】,然后选择Androd SDK根目录,如下图:
重启Genymotion的虚拟机即可解决问题。