Android Simulator genymotion installation and use tutorial

Source: Internet
Author: User
Tags android sdk manager

Respect for copyright, not reproduced without authorization
This article originates from: http://blog.csdn.net/fengyuzhengfan/article/details/53366252

A lot of friends have been asking me about the Android simulator, such as: The Android simulation is relatively fast, how to install the use of such. Today I put out this tutorial for my friends and small partners to consult for reference.

Android has a lot of simulator, but the most original number of Android SDK emulator, after all, Google's pro-son. The emulator in the previous Android SDK has always been an object for everyone to spit on, but since the x86 architecture has been supported, the speed of operation has improved a lot. But the emulator in the Android SDK is too demanding for the user, and the light configuration has turned a lot of little white out. Now, let's share a quick Android simulator genymotion for small white and developer use.

Installing Genymotion

Because the genymotion needs to rely on VirtualBox, you need to install VirtualBox before installing Genymotion.

Download VirtualBox

Go to https://www.virtualbox.org/wiki/Downloads, download the appropriate VirtualBox as needed, and install.

is the Vitualbox open interface, you can see that there is already a simulator, this simulator is created in the genymotion.

Tip: The correct way to launch the emulator is to start in Genymotion, although the Android simulator created by Genymotion can be launched in Vitualbox, but the interface is not very friendly and some of the features of Genymotion are not available. Also need to remind everyone is, Vitualbox installed after the tube, and later use and configuration simulator are in the genymotion.

Download genymotion

Download genymotion need to genymotion official website Register genymotion, go to https://www.genymotion.com/, register genymotion and obtain, will download good genymotion install can.

The installed genymotion open, you will see the window, there are already two created simulator, this is because before writing this tutorial, I have created two simulator, the first installation of Genymotion's small partner, see the interface is not created simulator.

Use of Genymotion

Once the genymotion is installed, it's time to create and use the Android emulator. Presumably the little partner can't wait to create a simulator to see how it works.

Create an Android emulator

Creating an Android emulator in Genymotion can be simple and easy.

For example, clicking the Add button will bring up a window to the right to create the emulator, select the corresponding version of the emulator you want to create in the "Android Version" drop-down box, select the appropriate device in the "Device Model" drop-down box, Then Genymotion will filter out the available devices for you, select an available device and press "Next" next, a confirmation screen will appear, confirming that the interface shows some of the configuration of the emulator you created, which are genymotion default for you to create, and then click " Next, Genymotion will download some of the images corresponding to the emulator and create the simulator, which will look like the following interface:

Finally, back to the Genymotion main interface, you'll see the emulator we just created in the emulator list.

Select the emulator for, and click Start to start the emulator.

Genymotion Simulator install third-party applications

Installing the app in the Genymotion simulator is fairly straightforward, just download the app's Android package and drag the xxx.apk file to the emulator interface to complete the installation, but you may encounter many problems with apps that can't be installed.

Install_fail_cpu_abi_incompatible

Genymotion is an error box when installing an app, roughly meaning: Genymotion can't install and run an ARM architecture app.

Tip: The Genymotion simulator, and most of the fast-known Android simulators on the market are basically based on the x86 architecture, x86 architecture Simulator is not compatible with the ARM architecture of the app, but the market long most of the app is based on the ARM architecture, It also means that the x86 simulator is not compatible with most simulators on the market, which is also a fast price.

Is there a way to install and run an ARM architecture app on the x86 simulator? If you are using the emulator in the Android SDK, I would recommend that you create an ARM architecture emulator directly, as you can go down to the Android image of the arm architecture in the Android SDK manager.

But the image that can be used in Genymotion is based on x86, so what if you let Genymotion run an ARM architecture app?

The heart of the small partner, may have found the answer, in the error message Genymotion has given us the answer: Install an arm translation to let genymotion support arm architecture of the app.

Arm translation, an arm conversion package, is also translated into an arm translator, which allows the x86 architecture emulator to run an ARM architecture app.

For your convenience, I have put the arm translation used in this tutorial on a network disk for download and use by everyone.

genymotion-arm-translation How to use

    1. Drag the downloaded Genymotion-arm-translation.zip to the Genymotion emulator interface for installation.
    2. Once installed, restart the simulator.

During the installation process, it pops up and clicks "OK" to confirm.


After the installation is successful, you will see the frame, and then restart the simulator to install the ARM architecture app.

Drag the downloaded app to the emulator interface for easy installation.

Tip: So far, we can experience genymotion fast and install apps that use ARM architecture.

Genymotion enable ADB (Develop and debug Android apps using Genymotion emulator)

This part is written for the development of the boys, if you do not do development using Genymotion can skip this section.

By default, the Genymotion emulator will cause Android ADB to become unusable when it is started. The most obvious feature is that when you run a project in Androidstuio, you can't find the connected Android device or the available virtual devices.

This is because genymotion is using "genymotion Android Tools" By default, so it can cause the above problems,

The simplest solution is to turn off the Genymotion emulator to get Android adb back to normal.

So, how do I use the Genymotion simulator to develop and debug Android projects?

Develop and debug Android projects using the Genymotion Simulator (genymotion enable ADB)

To be able to use the Genymotion simulator when developing and debugging Android applications, we need to change the Genymotion simulator adb configuration,

On the Genymotion main screen, click the Settings button to open the Genymotion Settings page and change the ADB tool to "use custom Android SDK tools" while Android The SDK path points to the Android SDK path on your computer. Once configured, close the dialog box and run the Android project again you will see in the connected project that the emulator in Genymotion

Problems encountered during installation and use of genymotion and their solutions

The following part, is my installation and use of the genymotion process encountered some problems and solutions, sorted out to share to everyone.

Unable to start the viutual device

The above problem is usually caused by the incorrect installation of virtual box.

Solutions

First step: Reload virtual Box

To uninstall virtual Box, go to https://www.virtualbox.org/wiki/Downloads, download the appropriate VirtualBox as needed, and install it on the secondary.

The second step: Open the Reload virtual Box, select a simulator in the simulator list click the Start button to start it, if it can start normally, the problem is resolved, close the emulator, the emulator can be started in genymotion.

Error in Supr3hardenedwinrespawn

If you start a problem with the emulator in virtual box, it is usually due to the fact that the virtual box version you installed is incompatible with your computer.

Solutions

Uninstall virtual box and go to https://www.virtualbox.org/wiki/Downloads to download a slightly lower version of virtual box reload to solve this problem.

At last

since come, leave a like to go again, encourage me to continue to create (^_^) ∠※

If you like my article, then pay attention to my blog @ devio.org Bar, let us be friends ~ ~

Poke here, add attention to OH:

Weibo: First time get push
Personal Blog: Dry articles are all here Oh
GitHub: My open Source project

Android Simulator genymotion installation and use tutorial

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.