目前最新的安装Genymotion的方法是:
- 去VirtualBox官网下载页面下载并安装**VirtualBox 5.1.2 for OS X **
- 去Genymotion官网下载页面登录,然后下载并安装genymotion2.7.2
- 在genymotion中添加模拟器并运行
似乎完美了
但是当你运行adb的时候会报错,报错内容如下:
$ 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
解决方法如下:
- 查找你的android sdk目录
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/caojianfeng/Library/Android/sdk/platform-tools
这里用“/Users/caojianfeng/Library/Android/sdk/”
-
设置genymotion的adb选项卡中的sdk路径: