Install and use genymotion and install genymotion
I. Introduction
I believe that the simulator on eclipse will feel very slow and slow. Here we will introduce a good Android simulator genymotion. For more information, visit https://www.genymotion.com /.
Ii. Install genymotion
1,RegisterGenymotionLoginAccount
Go to the website https://www.genymotion.com/and you will find that you must first register to download the installation package.
2,Download the installation package
Log on to your account and go to the download page.
For example, there are two installation packages: one is the virtual machine VirtualBox, and the other is not. If VirtualBox has been installed on your computer, you can select the second installation package to only install genymotion.
Note that your computer must comply with the System Configuration Requirements in System Requirements.
3,Install genymotion
Double-click the installation package and install it all the way to next.
Iii. UseGenymotion Virtual Device (simulator)
1,Start genymotion and log on
2,Create a virtual device (simulator)
Click "+ Add" To Go To The simulator selection list. For example.
Select the simulator you want to create, for example, Google Nexus 5-4.4.4-API19-1080*1920, and click "Next ".
For example, you can modify the device name as needed and click "Next ".
Next, we will automatically download the relevant files. You just need to wait (for a long time to do other things ).
After the simulator is installed, click Finish.
3,Enable Simulators
Double-click the simulator to be enabled, or select the simulator to be enabled. Click "Start" at the top to Start the simulator.
For example, if the simulator is started, you can deploy your application on the simulator.
4,Solve CPU compatibility problems
When installing an application to a simulator, drag the apk package directly to the simulator and a prompt will pop up:
The installation fails, and the virtual machine cannot run applications containing ARM code. You can use an X86 encoding application or install an ARM translation tool on a virtual machine.
(1) Problem Description
The genymation simulator runs on a PC with X86 CPU architecture. Most mobile phones use an ARM-based CPU. Generally, the default APK package is ARM. This will cause this error to be prompted when many ARM applications are installed on the genymation simulator.
(2) Solution
Method 1: Use X86 encoding.
Method 2: Install the ARM translation tool (ARM architecture support package) on the simulator to serve as a bridge between the two different CPU architectures of ARM and X86.
(3) Conclusion
It is more common to download the genymotion-arm-translation_v1.1.zip package and drag the file to the virtual machine. After installation, restart the virtual machine.