genymotion模拟器下载怎样创建模拟器

Android开发环境与SDK
如题, 经常要关闭进程,重启什么的。 有没有更方便的办法? 一劳永逸?谢谢啦~
这个没办法。我是每天先把91开起来,让他占住adb进程不被其他杀毒软件之类占用,然后再开Eclipse跟genymotion。这样相对来说挂掉的几率教低。不过偶尔你拔插手机可能就会再挂掉。
有时候就算先开了genymotion,然后Run as Android Application 仍然是自带的Emulator, 跳不出那个Chooser是为什么的, 也和adb有关吗??
Android开发环境与SDK
服务热线:400-678-8266[原]手把手教你_如何实现HBuilder连接到genymotion的模拟器上 - 推酷
[原]手把手教你_如何实现HBuilder连接到genymotion的模拟器上
背景说明:
hbuilder还是挺好用的,速度快,也够简单,但是运行的时候,看到hbuilder的运行菜单里面只是说明了如何连接到缺省的模拟器上,但是缺省的模拟器实在是太慢了,所以想连接到genymotion模拟器上。
问题现象:
安装好hbuilder和genymotion,启动模拟器后,hbuilder完全不为所动,找不到启动的模拟器,更别提运行了。
问题分析:
我的电脑上已经有android sdk环境,并且配置了环境变量,所以一运行adb就会启动android下面的adb,而genymotion和hbuilder都有各自使用的adb。
目录分别是:(示例)
. \adt-bundle-windows-x86_64-\sdk\platform-tools
.\HBuilder\tools
.\Genymobile\Genymotion\tools
所以很容易搞糊涂,说不定你的pc上还有什么豌豆荚,手机助手一类的,都有各自的adb。
解决方法:
在任务管理器中kill掉所有的adb.exe进程,启动genymotion模拟器,启动完成后,kill掉genymotion的adb.exe进程[kill掉前需要知道启动模拟器的ip和端口,方法参见下面注意2],再启动hbuilder,进入cmd,进入hbuilder的tools目录,运行:
.\adb connect 192.168.56.101:5555
于是hbuilder就连接上了模拟器。
1. 不能省去前面的.\ ,指定当前路径,因为path环境变量中有androidsdk的路径,会运行到那个adb,那个adb启动的时候会先kill掉当前的adb,需要明确指定是运行的hbuilder的adb;
2. 后面那堆ip和端口怎么得到的,在kill所有adb.exe进程启动genymotion模拟器后,进入genymotion的tools目录,运行: &.\adb devices(同样不能省略.\),清单中会显示模拟器的ip和端口;
3. 如何知道当前运行的adb.exe是哪个软件的:在任务管理器中右键该adb.exe,选择右键菜单中的:打开文件位置。
好了,大功告成!
已发表评论数()
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
标题不准确
排版有问题
主题不准确
没有分页内容
图片无法显示
视频无法显示
与原文不一致下次自动登录
现在的位置:
& 综合 & 正文
android genymotion模拟器怎么使用以及怎么连接eclipse来带动模拟器
genymotion是一款号称速度最快性能最好的android模拟器,它基于Oracle VM VirtualBox。支持GPS、重力感应、光、温度等诸多传感器;支持OpenGL 3D加速;电池电量模拟;能够运行在windows、linux、mac系统下;并提供的有eclipse下的插件,可以支持在eclipse下进行应用开发测试。
(一)首先介绍下如何下载并运行genymotion模拟器
在网站上点击sign up按钮开始进行注册。
填写相关注册信息
完成注册后会提示你有邮件发到你上一步填写的邮箱去激活账户
在邮箱里激活刚注册的账户
激活刚注册的账户会提示你可以开始下载genymotion
登陆刚注册的账户
选择下载genymotion
选择包含virtualbox的genymotion-1.0-vbox.exe进行下载
下载完genymotion-1.0-vbox.exe,运行该exe按照默认的选项一路安装下去即可
安装完成后在桌面上会发现genymotion命令行工具图标:Genymotion Shell;genymotion图标:Genymotion:Genymotion;以及虚拟机Oracle VM VirtualBox的图标。
点击Genymotion图标运行genymotion会提示你需要创建虚拟设备,点击yes按钮开始创建虚拟设备。
使用注册好的用户名和密码连接服务器
连接好服务器后开始添加自己需要的虚拟机
按Next按钮创建虚拟设备
点击Create按钮
运行虚拟设备
设置android SDK目录
再次运行genymotion中的虚拟设备
使用起来确实比google提供的模拟器流畅不少
(二)安装安兔兔进行测分
genymotion模拟器的安兔兔测试得分
google模拟器的安兔兔测试得分:
安兔兔测得在同一台电脑上同是Nexus 480X800的虚拟设备genymotion分值高达13836,而测试得到的google模拟器只有区区953,genymotion在各项参数上均表现好不少。
(三)在eclipse下安装genymotion插件
启动eclipse,选择Help-&Install New Software菜单
点击add按钮
填入Genymobile、点击OK按钮
选择genymotion相关插件选项进行安装
接受相关协议
忽略相关警告
提示重启eclipse即已经完成genymotion插件的安装,点击yes按钮重启eclipse
重启eclipse会在工具栏上发现genymotion的图标,点击即可启动该插件。
第一次启动genymotion插件需要填入genymotion的安装目录:C:\Program Files\Genymobile\Genymotion
(四)调试应用程序,这里我调试一个OpenGL的程序。发现OpenGL的程序在genymotion上运行的很好。
点击eclipse上的genymotion插件图标,在弹出的对话框选择以前创建的虚拟设备启动。
在eclipse下的工程项目上单击鼠标右键,在弹出的菜单里选择Run as-&Run Configurations.
在Run Configurations对话框选择下面的选项即可
之后运行工程项目即可发现当前的这个opengl项目在genymotion上能很流畅的运行
(五)genymotion shell命令行工具
可在genymotion shell下输入相关指令获取一些信息或者设置一些参数之类
genymotion shell支持的命令行如下所示:
Command line options
-h Print help
-r ip_address Connect to specific Genymotion Virtual Device
-c "command" Execute the given command in genyshell environment and return
-f file Execute the content of the file. Each command per line
Available commands
battery getmode
Return the current battery mode of the selected virtual device. The mode can only be:
host: The virtual battery reflect the host battery (if exists)
manual: In this mode, you can set the level and status battery values
battery setmode
Set the battery mode. The mode can only be:
host: The virtual battery reflect the host battery (if exists)
manual: In this mode, you can set the level and status battery values
battery getlevel
Return the current battery amount of power. The value can only be between 0% and 100%.
If the battery mode is "host", the returned value is the host value.
battery setlevel
Set the current battery amount of power. The value can only be between 0% and 100%.
Set the battery level force the "manual" mode: if the last mode was "host", then it's turned to "manual"
battery getstatus
Return the current battery status. There are 4 possible status:
Discharging: The power supply is disconnected and the battery is discharging.
Charging: The power supply is connected and the battery is charging.
Full: The battery is full.
Unknown: Sometimes, the battery status cannot be established, it happens when there is no host battery.
battery setstatus
Set the current battery status. There are 4 possible status:
Discharging: The power supply is disconnected and the battery is discharging.
Charging: The power supply is connected and the battery is charging.
Full: The battery is full.
Unknown: Sometimes, the battery status cannot be established, it happens when there is no host battery.
devices list
List available Genymotion virtual devices and provides details like current states or IP address.
devices ping
Send a ping message to check if virtual device if responding
devices refresh
Refresh Genymotion virtual device list. Use it to keep the list up-to-date.
devices select
Select the Genymotion virtual device you want to interact with.
devices show
List available Genymotion virtual devices and provides details like current states or IP address
gps activate
Activate the GPS sensor (if not already activated)
gps desactivate
Desactivate the GPS sensor (if activated)
gps getlatitude
Return the actual latitude (if GPS is activated AND already has a latitude) or 0
gps setlatitude
Set latitude (and activate GPS if not allready activated)
gps getlongitude
Return the actual longitude (if GPS is activated AND allready has a longitude) or 0
gps setlongitude
Set longitude (and activate GPS if not allready activated)
gps getaltitude
Return the actual altitude (if GPS is activated AND allready has a altitude) or 0
gps setaltitude
Set altitude (and activate GPS if not allready activated)
gps getaccuracy
Return the actual accuracy in meters (if GPS is activated AND allready has a accuracy) or 0
gps setaccuracy
Set accuracy (and activate GPS if not allready activated)
gps getorientation
Return the actual orientation in meters (if GPS is activated AND allready has a orientation) or 0
gps setorientation
Set orientation (and activate GPS if not allready activated)
android version
Return the Android version of the selected virtual device
build number
Return the genymotion shell build number
Prompt the help.
Pause execution (in number of seconds).
Return GenyShell version.
exit or quit
Close Genymotion Shell.
&&&&推荐文章:
【上篇】【下篇】12345678910
10-2110-2110-2110-2110-2010-2010-2010-2010-2010-20
京公网安备 86 京ICP证140355号 京网文【-109号
未成年人家长监护}

我要回帖

更多关于 genymotion模拟器 mac 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信