Genymotion download and install (Android Virtual Machine)

Genymotion download and install

I. Registration \ Log

Open Genymotion official website, https://www.genymotion.com/  , first click on the upper right corner Sign in to log operations. How to log not go into detail, here to talk about how to register (Note: registration button in the login screen).

registered

If there is no account, you need to register. In the login screen, click on the Create an account button to open the registration screen.

Sign up to use Google interface is as follows :( browser interface after translation)

 

According to the above prompted to enter relevant content, it should be noted that after entering the email and password, the system will send an email to your mailbox, be sure to go to verify. Note: Be sure to verify! ! !

Second, download, install the Android emulator Genymotion

Download: https://www.genymotion.com/download/

Download genymotion

Because Genymotion need to run VirtualBox, if the computer is not installed, the proposed election of this version.

 

Installation Genymotion

To install genymotion-2.9.0-vbox.exe for example, double-click the downloaded Genymotion installation file, select the installation directory, click Next. [Installation] directly all the way to the next step

  

  

Because the downloaded installation comprises VirtualBox, it will be installed VirtualBox interface automatically during installation.

  

  

  

  

  

Note: It is recommended to remove the tick! ! !

So far, Genymotion installation will be finished.

After the first open software interface as follows:

If the sequence number is input. If not, you can click on Personal Use.

   

The first time into Genymotion, checks to see if you have a virtual Android device. If there is no dialog will pop up asking if you now add a virtual device, click yes or no on it.

 

Third, the use Genymotion create a virtual device

In the Home screen, click the ADD button.

 

Open to create a virtual device interface, suggesting the need to log in to verify bottom of the screen. (Note: If the authentication fails, please confirm whether the mailbox has been verified)

点击右下角的Sign in按钮,打开登录对话框。输入用户名和密码进行登录。

   

验证成功后,可以看到有很多虚拟设备。选中想添加的虚拟设备,选择后点击下一步。

 

下载安装,等到下载到100%.点击[Finish]按钮。

注意,每一个API版本可以对应多个机型,此处下载安装的是API版本。例如,下面两个虚拟设备,Google Nexus5 - 6.0.0和Custom Phone – 6.0.0,如果已经存在了其中一个设备,那么另外一个设备创建的时候不需要重复下载了,可直接创建成功。

 

回到主窗口,选择一个我们已经添加的模拟器,点击启动按钮启动模拟器。

 

启动虚拟机:

四、Android Studio中安装Genymotion插件

安装步骤见官网说明:https://www.genymotion.com/plugins/

打开File——Settings——Plugins——Browse Repositories界面

在搜索输入框中输Genymotion进行搜索查找,然后点击右侧的Install按钮。

安装成功后,重启Android Studio。

 

安装成功后会在工具栏出现一个genymotion的图标,但这个时候还没有关联到电脑上的模拟器。

点击这个genymotion图标,打开关联模拟器设置(setting——other setting->genymotion)界面,关联模拟器:

五、Android Studio集成Genymotion和调试

打开genymotion的主页面——Settings——ADB

 

选择Android SDK的位置

重启Android studio,并重启android studio的genymotion插件(点击下genymotion图标)。

问题汇总

在Android Studio中run项目时看不到Genymotion创建的虚拟设备的问题

问题截图

解决方案

点击genymotion图标或者打开Genymotion软件,启动其中一个模拟器,那么run项目就会看到genymotion的虚拟设备。

 

此时,在run项目,就会发现出现了genymotion创建的这个虚拟设备。

 

在genymotion创建的虚拟设备中启动项目失败,提示java.lang.UnsatisfiedLinkError: com.android.tools.fd.runtime.IncrementalClassLoader$DelegateClassLoader[DexPathList的问题

问题原因

genymotion用的是vbox虚拟机,相当于在x86环境下运行的,限定ARM的程序(比如微信)自然是无法安装了,会提示"INSTALL_FAILED_CPU_ABI_INCOMPATIBLE"这个错误。同理,如果项目中用到了微信、百度等的API,那么这个项目也是出现类似的错误。

解决方案

下载arm的支持组件,然后直接拖到Genymotion建立的虚拟器上面点击OK重启就可以正常调试了。

Genymotion-ARM-Translation.zip下载地址:

第一个地址:链接:http://pan.baidu.com/s/1eRLlWZK 密码:x58k

第二个地址:链接:http://pan.baidu.com/s/1bpy7DDX 密码:gm34

 

目前网上流传的版本Genymotion-ARM-Translation.zip是适配 Android 5.0以前的版本的,5.0、5.1及6.0版本可能无法使用 。

建议先使用第一个地址的arm组件,如果不行的话,再考虑使用其他版本。

注意:

Genymotion-ARM-Translation.zip千万不要放到电脑的中文目录下!!!否则拖拽到虚拟设备中会变成复制操作。

每一个想要使用的虚拟设备都需要安装这个arm组件!!!

Genymotion无法启动_unable to start the virtual device

 

以上步骤操作完成之后就可以启动你的虚拟机了。那么Genymotion上面的安卓虚拟机也就可以启动了。

 

Guess you like

Origin www.cnblogs.com/Susie-/p/10994328.html