目前最新的安装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路径:
进入设置,打开ADB选项卡。选中Use custom AndroidSdk tools,填写Android SDK路径
网友评论
但是我genymotion配的就是当前在用的sdk,环境变量配的也是当前的sdk
但是使用which命令发现adb的路径和上面的不对,不知道该怎么改了
$ which adb
/Users/caojianfeng/Library/Android/sdk/platform-tools/adb