博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
模拟器安装 - genymotion
阅读量:4202 次
发布时间:2019-05-26

本文共 2094 字,大约阅读时间需要 6 分钟。

用真机调试要占用手机,有其不方便之处(有公家testing手机的除处),模拟器标准是用SDK Manager 中的 ARM EABI System Image,可能 I5+8G内存 不够吧(说笑),结果不是慢,而是一直Loading 直接起不来。后来用 Android Studio,开始连IDE也有点慢,后来优化了一下,速度可以接受了。不过eclipse 不想放弃,改用Intel x86 Atom System Image(Intel CPU的才可用,针对Intel CPU优化的), 终于可以起来了。注意AVD起了后,就直接在上面运行,不用每次关了AVD再启。如是debug 则要关了run mode的AVD然后再debug,debug 和 run 切换是需要重启AVD的。

不过这东西来多几次又会变得很慢,实在受不了,找了找,发现genymotion,终于接近真机速度啦!

安装过程网上一大把,这里贴一个:,

一、需要注意的是:

1)Genymotion 需要网上注册,记得去英文版网(genymotion.com)而不是中文版网(genymotion.net, genymotion.cn)注册,不要会白搞的,呵呵~;

2)之前用Genymotion 版本 2.1,不知道是版本问题还是兼容性问题,模拟器启动了,但应用不能正常装上去,没错误信息但又一直黑屏,换了2.3 就可以了。

3)如何在Genymotion上运行?

      以eclipse为例,直接在eclipse外就运行Genymotion,并启动相应的模拟器(各种不同型号的模拟器会在配置时自动下载,大概100多MB一个)。

      Eclipse > Run as > Run configuration,选择相应程序 > Target > Launch on all compatible devices > Active devices。在Genymotion模拟器上开手机锁,看到Hello World了吗?:)



另:现在的 adt-bundle-windows-x86已经集成SDK和eclipse,eclipse启动速度很快,因为没有Java EE等plugin。想做JavaEE开发的可以再下载JavaEE版的eclipse,分开也好,启动快。所以初始安装的全套工具有:

adt-bundle-windows-x86(约480MB,http://big1.cr173.com/adt-bundle-windows-x86.zip)

VirtualBox(约106MB,http://dlsw.baidu.com/sw-search-sp/soft/08/15321/VirtualBox-4.3.24-98716-Win.1425444683.exe)

genymotion(约25MB,www.genymotion.com,注册登陆下载,有合并VirtualBox版下载)

genymotion eclipse 插件(约25K, 解压adt-bundle-windows-x86获得eclipse,eclipse > install new software,参考)

genymotion 模拟器(约100MB一个,通过genymotion软件下载)

二、可能问题:

Q: Unable to start the Genymotion virtual device (host)

A: 我在三台机器(分别是winxp, win vista, win 7)都装了,同样的安装文件和安装流程,结果在vista上出现这个错误,经试验,以下的这个方法可以解决:http://www.pczhishi.cn/jishu/guzhang/171.html (内网ip随意,不要与外网的真正ip一样就可以了)至于原因。。。就不知了。

 

Q: Unable to start the Genymotion virtual device (module not found)

A: check virtual box installation path, disk space. normally, need to re-install virtual box in other drive or path.

Q: The connection to adb is down

A: genymotion > setting > adb > use custom Android SDK tools, set 为原来的sdk路径。然后重启eclipse,eclipse > 对应工程右键 > run configuration > Target > Launch on all compatible devices/AVD's > Active devices and AVD's.

Q: Android 5 不支持之类的

A: eclipse > Java > compiler,JDK 1.6 (1.5不支持Android 5)

转载地址:http://lwili.baihongyu.com/

你可能感兴趣的文章
傻傻的我
查看>>
paypal 沙盒账号注册
查看>>
ebay 沙盒账号注册
查看>>
linux -8 Linux磁盘与文件系统的管理
查看>>
linux -8 Linux磁盘与文件系统的管理
查看>>
linux 9 -文件系统的压缩与打包 -dump
查看>>
PHP在变量前面加&是什么意思?
查看>>
ebay api - GetUserDisputes 函数
查看>>
ebay api GetMyMessages 函数
查看>>
wdlinux
查看>>
关于mysql升级到5.5报错问题
查看>>
magento - 通过storeid,分类id,天数(几天内)得到产品
查看>>
一个很不错的bash脚本编写教程,至少没接触过BASH的也能看懂!
查看>>
Redis和Memcache对比及选择
查看>>
用谷歌账号登陆magento、
查看>>
php oauth 模块在linux下安装
查看>>
代替nginx的服务器 - The Tengine Web Server
查看>>
nginx 升级成 tengine 的代码
查看>>
magento rest api 调用
查看>>
magento rest api 调用!
查看>>