Android Emulator setting & Configuation

Source: Internet
Author: User
Tags android sdk manager

In order to make the Android emulator run faster and is more responsive, you can configure it to take advantage of Hardwar e acceleration, using a combination of configuration options, specific Android system images and hardware drivers.


Using SDK Manager to Download/install x86 system image

1. Configuring Graphics Acceleration

Graphics acceleration for the emulator takes advantage of your development computer ' s graphics hardware, specifically it Graphics processing Unit (GPU), to make screen drawing faster.


SDK Tool version >= 17

SDK Platform API version >= (i.e. >= Android 4.0.3)

In AVD, specify ' useHost GPU ', note not to specify snapshot

Plus, you can specify the use of GPU acceleration (specify "-gpu on" in Target's additional emulator command line options) at Runtime

2. Configuring Virtual Machine Acceleration

Caution: As of SDK Tools Revision, the Virtual machine Acceleration feature for the emulator is experimental; Be alert for incompatibilities and errors when using the This feature.

Many modern CPUs provide extensions for running virtual machines (VMs) more efficiently. Taking advantage of these extensions with the Android emulator requires some additional configuration of your development System, but can significantly improve the executionspeed. Before attempting to use this type of acceleration, you should first determine if your development system ' s CPU supports O NE of the following virtualization extensions technologies:

    • Intel Virtualization Technology (VT, vt-x, VMX) extensions

    • AMD Virtualization (amd-v, SVM) extensions (only supported for Linux)

Note:retina MAC book Pro (I7-3635QM) supports VT


Note: virtualization extensions is typically enabled through your computer ' s BIOS and is frequently turned off by default . Check the documentation for your system's motherboard to find out how to enable virtualization extensions.


To use virtual machine acceleration with the emulator, you need the following version of Android development tools. Use the Android SDK Manager to install these components:

    • Android SDK Tools, Revision or higher

    • Android x86-based System Image

Virtual machine acceleration on a MAC requires the installation of the Intel Hardware Accelerated execution Manager (Intel HAXM) kernel extension to allow the Android emulator to make use of the CPU virtualization extensions.

  • Configuring VM acceleration on MAC

    To install the Intel HAXM kernel extension:

    1. Start the Android SDK Manager, select

      Extras

      And then select

      Intel Hardware Accelerated execution Manager.

    2. After the download completes, execute

      /extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.dmg.

    3. Double Click the

      intelhaxm.mpkg

      icon to begin installation.

    4. Follow the on-screen instructions to complete installation.


    5. After installation completes, confirm, the new kernel extension are operating correctly by opening a terminal windows an D running the following command:


    6. Kextstat | grep Intel

    7. You should see a status of message containing the following extension name, indicating that the kernel extension is loaded:

    8. Com.intel.kext.intelhaxm


    9. Restart ECLIPSE

    10. Recreate AVD to ' use Host GPU ' in x86 system image

    11. Start AVD



Android Emulator setting & Configuation

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.