Install and configure genymotion, the strongest Android Simulator

Source: Internet
Author: User

Install and configure genymotion, the strongest Android Simulator

Android Developers know that native simulators are slow to start and are not easy to operate, and there may be inexplicable problems. Of course, many people will choose to use the android mobile phone for development, but sometimes the mobile phone is not very good when the program needs to be demonstrated on the projector. Here I will introduce you to Genymotion, a good android simulator.

On the Internet, I can see a lot of blog posts about how to install and use the Genymotion simulator. I have also conducted some practices on my computer over the past two days. After one day of installation, I encountered many problems, so write down this blog post and make a record.

1. Genymotion Introduction

1. Genymotion Android simulator is not a common simulator. Strictly speaking, genymotion is a virtual machine and is defined as a simulator by online transmission. The APP loading speed is fast and the operation is smooth.

2. Genymotion depends on VirtualBox (the famous open-source Virtual Machine Software is lightweight and easy to use !), Genymotion and VirtualBox must be used together (Genymotion calls the VirtualBox interface ).

3. Genymotion can be used as a plug-in for Eclipse and Android Studio.

2. install the software required by Genymotion

1. genymotion-2.4.0 (without virtual box) and VirtualBox-4.1.20-80170-Win (I made it myself !) : Genymotion + virtualbox

2. Of course, you can also go directly to the Genymotion official website to download the link: the official website (registration is required, and the registration notes are not mentioned). The official website provides two versions, genymotion integration package with virtual box and genymotion installation package without virtual box. Previously, I downloaded the integrated package. After installation, I reported an error. Later, I saw that the virtual box version provided in the integrated version is too high, and the next version is enough.

Iii. Installation instructions

    1. Make sure that you have not installed or uninstalled a virtual machine in your system, or you know How to associate genymotion with the virtual machine you have installed;

2. Install VirtualBox4.1.20 and click next;

3. Install genymotion-2.4.0;

Iv. Instructions for use

1. Start genymotion and log in with your account and password registered on Genymotion's official website;

2. If you want to associate your local SDK, You need to configure it. On the genymotion main interface, choose settings> ADB> Use custom Android SDK tools, in the Android SDK box select your computer sdk folder path, such as my computer is E: \ adt-bundle-windows-x86_64-20140702 \ sdk;

Note:In this process, I encountered a problem. As long as I enter the ADB interface in settings, the program will be stuck when I click the mouse. This is the case every time I open it again, even if I restart my computer. I enteredClick the "Use M Android SDK tools" option on the "ADB" interface in settings, and then stop clicking it. Later, you will find that the program has been selected.Use custom Android SDK tools, which means this step may be very slow. Do not click the option and find that it does not respond. Just wait a moment.

3. Click add on the genymotion main interface to add the desired Simulator model. Select one and download it for use;

4. After downloading the simulator, double-click the simulator to start it;

      Note: In this step, I also encountered a problem. When the simulator is started, an error is reported, and the cannot access the kernel driver error is reported when the simulator is started in virtual box.

Solution: (1) disable your firewall and anti-virus software first (it is best to disconnect the network first). If you do not close the firewall, an unknown error may occur when running the service directly;

(2) Go to the C: \ Program Files \ Oracle \ VirtualBox \ drivers \ vboxdrv folder (for details, see where your vbox Program is installed or stored) and find vboxdrv. inf file. Right-click the file and select install;

  5. Install the genymotion plug-in under eclipse(The computer configuration is low, so we still use eclipse to develop android --!)

1. Open eclipse, click Help-> Install New Software...-> add. In the Add Repository dialog box that appears, enter genymotion and Location: http://plugins.genymotion.com/eclipseclick okto download the installation.

2. After installation, you can see the following plug-in icons in eclipse:

    

3. You also need to configure the Genymotion installation path in the plug-in: choose Window> Preferences> Genymobile> Genymotion, and select the installed Genymotion path in the genymotion directory box, for example, here is the default installation path: C: \ Program Files \ Genymobile \ Genymotion

6. API version Problems

The genymotion startup simulator cannot be found when running the program,

    

Go to the DDMS page and you will see the following:

    

This problem is mainly because the API version of The genymotion simulator is too low. Just change the simulator of the higher version of the API.

7. Check your achievements.

1. Click the plug-in icon in eclipse:

    

2. Select a simulator and start it:

    

    

    

3. Select an android project and run it! (You will find that the operation is much smoother than the native simulator ...)

Author: Hyman Lee

Source: http://www.cnblogs.com/page-of-Hyman/

This article is reproduced in: http://www.cnblogs.com/page-of-Hyman/p/4470644.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.