MAC上安装Genymotion的正确姿势

目前最新的安装Genymotion的方法是:

  1. 去VirtualBox官网下载页面下载并安装**VirtualBox 5.1.2 for OS X **
  2. 去Genymotion官网下载页面登录,然后下载并安装genymotion2.7.2
  3. 在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

解决方法如下:

  1. 查找你的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/”

  1. 设置genymotion的adb选项卡中的sdk路径:


    MAC上安装Genymotion的正确姿势_第1张图片
    进入设置,打开ADB选项卡。选中Use custom AndroidSdk tools,填写Android SDK路径

你可能感兴趣的:(MAC上安装Genymotion的正确姿势)