adb链接不上Genimotion虚拟机
启动adb报:
List of devices attached
adb server version (31) doesn’t match this client (36); killing…
error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:8899: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 (10048)
could not read ok from ADB Server
* failed to start daemon *
error: cannot connect to daemon
原因是genymontion的sdk引起的因为我刚刚修改了adb的端口,而修改的adb是android studio的sdk,而genymontion使用的是eclipse的:
这个sdk是eclipse的,没有配环境变量,所以把他修改成配了环境变量的sdk
重新启动genymontion就ok了。