echopi / blog

write someting
0 stars 0 forks source link

Genymotion #7

Open echopi opened 8 years ago

echopi commented 8 years ago

[Android emulator] Genymotion

  1. 下载安装 Genymotion,下载时需要注册帐号,选择个人免费版
  2. Genymotion 依赖 VirtualBox,下载安装 VirtualBox
  3. Android SDK (Android Studio)
echopi commented 8 years ago

官方文档

https://github.com/codepath/android_guides/wiki/Genymotion-2.0-Emulators-with-Google-Play-support

echopi commented 8 years ago

getova

日志位置

~/.Genymobile/genymotion.log

如何解决 conection timeout

方法1: 设置代理,慢

方法2: hack 一下,快

  1. tail -f genymotion.log
  2. getvoa 的链接,浏览器访问可以得到一串 JSON ,里面包含了 ova 的下载地址,下载
  3. conection timeout 错误出来的时候,ls ~/.Genymobile/Genymotion/ova
  4. 下载完成后的文件改名成步骤 3 的文件名,类似这样 0c1e53f8-cd7f-48fb-8bb9-c35b8d6c0d1a.ova 5 挪到 ~/.Genymobile/Genymotion/ova 目录
https://cloud.genymotion.com/vmtemplate/e70d130c-955c-4f25-a451-0ed2e57a24ac/getova

[
  {
    platform: "p",
    ova_name: "genymotion_vbox86p_5.1_160609_162956.ova",
    ova_hash: "327e8640f9e3bb51cb49e5de5667fa77aba65e21",
    ova_size: 259758080,
    ova_url: "http://files2.genymotion.com/dists/5.1.0/ova/genymotion_vbox86p_5.1_160609_162956.ova"
  }
]
echopi commented 8 years ago

Using Genymotion With Charles Proxy

echopi commented 8 years ago

install app (apk)