如何使用geny motion3ds模拟器如何使用

今天看啥 热点:
解决eclipse连接不到genymotion的问题,eclipsegenymotion
(1)很多朋友在使用genymotion开发安卓应用程序的时候,会遇见完全正确的安装但是在运行的时候仍然找不到,genymotion上的设备,在打开的devices上找不到如下图所示:
(2)解决的方法如下:
1、关闭eclipse、genymotion等相关软件;
2、打开你的genymotion--找到settings---找到ADB、按照我下图所示的地方勾选--在勾选的地方选择你本机的sdk即可!确认!
3、找到你的android-SDK目录下--platform-tools有一个adb
4、然后在地址栏中删除地址并输入cmd回车,直接在cmd中定位到该目录下,按照下图步骤即可:输入两个命令!
5、然后现在可以打开genymotion,开启虚拟机,等虚拟机内的android设备启动之后,再打开eclipse,再次在devices中就可以找到你的设备!
问题解决的关键是:不适用genymotion自带的sdk,而是用android-sdk这样的话就不会冲突!祝你成功!
相关搜索:
相关阅读:
相关频道:
Android教程最近更新下次自动登录
现在的位置:
& 综合 & 正文
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.
&&&&推荐文章:
【上篇】【下篇】android解决genymotion模拟器无法下载虚拟机问题
android解决genymotion模拟器无法下载虚拟机问题
刚在windows上装了androidstudio,发现自带模拟器一直不能用,况且根据以往经验,使用起来也相当卡。还是装一个genymotion模拟器吧,
1.首先上官网注册一个账户,然后下载你当前版本的genymotion(推荐下载带virtualbox的):http://www.genymotion.net/
2:下载下来直接一步一步安装就好了。
3.安装好后,重点来了,不能下载虚拟模拟器,总是出现Unable to create virtual device,Server returned HTTP status code 0 错误。弄啦好久,依然头疼啊。总后看了多个博客之后,终于成功了,在这里终结一下经验。
4.首先运行genymotion,下载你想下载的机型,等待出现Unable to create virtual device,Server
returned HTTP status code 0错误。关闭genymotion。
5.进入c盘,进入C:\Users\chen\AppData目录,依次进入Local-&Genymobile目录,找到genymotion的log日志。打开找到类似/vmtemplate/ec8546af--a88b-559f19672ff8/getova的网址,用浏览器打开,还会返回一个json字符串。
(如果打开网址没有返回json字符串,而是进入genymotion官网,不用着急。。在官网上登陆genymotion账号,再次打开此网址就解决了)
6.如果log文件太复杂冗余,可以先删除这个文件,运行genymotion下载模拟器,会自动创建一个日志文件,再次打开上述网址。
7,将地址复制到迅雷中下载。
8.将下载文件拷贝到与上述日志文件同目录下的Genymotion\ova目录下。双击,将其加载到virtualbox中。
9.再次打开genymotion,就会出现该模拟器了!!
建议:很多同学可能会遇到安装完genymotion后无法打开,出现unable to load virtualbox engine的错误,这里建议不要修改genymotion的安装路径,有时修改了默认路径后会出现郑重错误。
我的热门文章
即使是一小步也想与你分享最快的安卓模拟器
测试与模拟APP应用必备
Genymotion是最新版的安卓模拟器,被300000开发者所信任!
我们会变得更易用、更个性化。
加入我们社区并成为第一批的使用者吧!
现在下载Genymotion
注意:下载Genymotion必须先注册
关于Genymotion
保证您的应用能以最好的画质和效能运行,这是他们应有的表现。
只要轻点3次鼠标,就可以开始使用您的虚拟器。
友好的用户交互界面,轻松地操作电池、GPS、加速器等模拟感应器。
功能强大的命令行工具,让您构建复杂的测试。
Genymotion是一个使用x86架构的虚拟化模拟器,因此更加高效!
借助OpenGL硬件加速的优势,它可以让您以惊人的3D性能测试您的应用程序。
将Eclipse插件完美整合到您的开发环境中。
以友好的用户界面,打包到Windows、Mac和Linux。
& 版权所有 2013 – Genymotion - All Rights ReservedAndroid开发人员都知道,原生的模拟器启动比较慢,操作起来也不流畅,还会出现莫名的问题。当然很多人都会选择直接使用android手机来开发,但是有时候需要在投影仪上演示程序的时候手机不太好做到吧。这里我给大家介绍一款很好的android模拟器——。
网上可以看到很多介绍Genymotion模拟器安装及使用方法的博文,我这两天也在自己电脑上进行了一些实践,经过一天的捣腾才装好,遇到了不少的问题,所以写下该博文做个记录。
一、Genymotion介绍
1、Genymotion安卓模拟器其实不是普通的模拟器,严格来说,genymotion是虚拟机,被网传定义为模拟器,加载APP的速度比较快,操作起来也很流畅。
2、Genymotion依赖于VirtualBox(著名的开源虚拟机软件,轻巧、好用!),就是说Genymotion跟VirtualBox要一起使用(Genymotion调用了VirtualBox的接口)。
3、Genymotion可作为Eclipse、Android Studio的插件使用,很方便。
二、安装Genymotion所需要的软件
1、genymotion-2.4.0(不带virtual box)和VirtualBox-4.1.20-80170-Win的下载地址(我自己整理的哦!):
2、当然你也可以直接去Genymotion官网下载:(需要注册,注册的注意事项就不多说了),官网提供了两个版本,带有virtual box的genymotion整合包和不带virtual box的genymotion安装包。之前我下载的就是整合包,安装之后一直报错,后来在网上看到原来是整合版中提供的virtual box版本高了,下个低版本的即可。
三、安装说明
1、确保你系统之前没有装过虚拟机或者已经卸载干净,或者你懂关联genymotion和你本身安装了的虚拟机;
2、安装VirtualBox4.1.20,一路点击next;
3、安装genymotion-2.4.0;
四、使用说明
1、启动genymotion,并使用自己在Genymotion官网注册的账号密码登陆;
2、如果要关联自己本地的SDK就需要进行配置:在genymotion主界面,依次点击settings—&ADB—&Use custom Android SDK tools,在Android SDK框中选择你电脑上sdk文件夹路径,如我电脑上就是E:\adt-bundle-windows-x86_64-\sdk;
注:这个过程中我遇到过一个问题,只要进入到settings中的ADB界面,随便一点击鼠标程序就会卡死,每次重新打开都是这样,即便重启电脑也没有。后来偶然一次我进入settings中的ADB界面点击一下Use custom Android SDK tools选项然后不再点击,随它,过会儿发现程序选择了Use custom Android SDK tools这个选项,也就是说这一步可能很卡,不要在点击选项发现没反应继续点击,稍微等会儿就好了。
3、在genymotion主界面点击add即可添加你想要的模拟器型号,选择一个,让他下载好就可以用了;
4、模拟器下载好后双击模拟器将其启动;
注:这步我也遇到了问题,启动模拟器报错,然后在virtual box中启动模拟器报cannot access the kernel driver错误
解决办法:(1)先关闭自己的防火墙跟杀毒软件(最好先断网),不关闭的话直接运行有可能会出现未知错误的提示;
2)进入C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv文件夹(具体看自己的vbox程序是安装或者放什么地方了),找到vboxdrv.inf这个文件,鼠标右键点,然后选择安装;
五、安装eclipse下的genymotion插件
(电脑配置较低,所以还是用的eclipse开发android –!)
1、打开eclipse,依次点击Help—&Install New Software…—&add,在弹出的Add Repository对话框中Name框输入:genymotion,Location框中输入:/eclipse点击ok后面进行下载安装即可。
2、安装好后可以在eclipse中看到如下的插件图标
3、还需要在该插件配置Genymotion的安装路径:依次点击Window—&Preferences—&Genymobile—&Genymotion,在Genymotion directory框中选择刚才装好的genymotion的路径,如我这里是默认安装路径:C:\Program Files\Genymobile\Genymotion
六、API版本问题
运行程序发现找不到genymotion启动的模拟器,如图:
进入DDMS界面会看到如下情况:
这个问题主要是因为genymotion模拟器的API版本太低了,换个高版本API的模拟器即可。
七、看看自己的成果吧
1、在eclipse中点击插件图标:
2、选择模拟器并启动:
3、然后选择一个android项目将其运行吧!(你会发现操作起来比原生模拟器流畅多了…)
在文章中找不到问题答案?您还可以
热门栏目订阅

我要回帖

更多关于 motion模拟器 的文章

 

随机推荐