I. Overview of the problem |
Android Development uses an emulator to test the app, but whether you use the Eclispe ADT or the Android Studio emulator is based on the arm architecture and runs slowly, the light starts up and takes a lot of time and doesn't know what it's loading. Today, we recommend a new Oracle VM VirtualBox-based emulator--genymotion, which is now the most fire simulation artifact, running even faster than the real machine.
Genymotion offers two versions of the personal and commercial version, the personal version is free, the commercial version supports many features, of course, is charged, but the personal version has met the needs of the test application, anyway, eventually we have to run in the real machine. The personal version of Genymotion is used to feel a few good features:
1, installation can drag and drop the APK file into the emulator
2. Support GPS, Camera, power management
3, support the horizontal screen/vertical screen switch
4. Run multiple emulators at the same time to test different versions, different devices, assign an IP address to each device to facilitate network testing, the key is not affected by the speed of operation
Second, installation and configuration |
1. Download
Website address: https://www.genymotion.com/
before downloading, you need to register your account, log in, the personal version and the Enterprise version of the selection page appears, (of course the Enterprise version to pay), click to go to the Personal download page, select the Get genymotion link
2, install the genymotion just downloaded3. Installing the Genymotion plugin for Eclipse plugin
Can be installed online, the steps are as follows:
A) Open eclipse-> select Help->install New Software
b) in the Pop-up Install dialog box, select Add
Enter the http://plugins.genymotion.com/eclipse/address:
C) Click OK, tick the genymobile option, then install it.
You can also use the official plug-in to install, the following is the official website Genymotion-eclipse-plugin.jar, The installation process is similar to an on-line installation, just choose Archive in the second step ... button, select the plugin to download
4. Restart eclipse after installing the pluginyou'll find the section that appears on the toolbar
indicates that the plugin is already installed, executes the Windows-> options menu, sets the Genymobile option, Specify the installation directory for the Genymobile:
Click the Circle button, click the New button, install the virtual appliance,
multiple devices can be installed, This allows the installation and configuration of the genymotion to be completed.
Third, the use of genymotion |
Very simple to use, everyone will, the key is to feel the speed
1. Start the virtual machine
start the virtual machine before you test the project, or eclipse cannot detect the device. Select an installed virtual machine and click the Start button:
2. Execute Run as->application
Right-click on the project, execute run as->application, and you'll see the virtual device in the dialog box.
3. Click OK
Click OK to start installing the app and run the results
Circled button for Horizontal/vertical screen switching
Iv. Frequently asked questions--eclipse do not recognize genymotion devices |
Eclipse does not recognize the genymotion device during use,
Workaround:
Close Eclipse, then open genymotion-> find settings-> to find the ADB option:
Select the second item, click the Browse button, select the installation directory of your SDK, click OK
Restart Eclipse and run it again.
Speed up the Android emulator run-genymotion simulator