This page is deprecated. Redirecting to https://developer.android.com/studio/run/emulator.html The Android Studio 2.0 (or higher) preview includes the new Android Emulator 2.0 with improved performance and a new user interface to control device features. This page describes some of the changes compared to the emulator available with the stable version of Android Studio 1.5 and how to setup your development environment to use the Android Emulator.
New FeaturesThe most valuable updates to the Android Emulator are the speed improvements. When running with Android Studio 2.0 or higher on an x86 machine, response time is faster than the previous Android Emulator and you can transfer files from your machine faster than a physical Android device. The latest Android Emulator supports new multi-finger touch inputs, including pinch zoom and two finger rotate gestures. Holding down Alt or Option reveals two finger points. Moving the mouse moves one finger and the second finger is mirrored across an anchor point. Clicking the left mouse button enables pinch-zoom gestures and clicking the right mouse button enables two-finger rotate gestures (such as to tilt the perspective when viewing a map). The panel on the right side of the emulator lets you perform common tasks, such as rotate the screen, capture screenshots, and zoom in on the display. To install apps, you can drag and drop an APK right on the emulator. You can also drag and drop other file types and they'll be saved to the /sdcard/Download/ directory. At the bottom of the toolbar on the right is an ellipsis button that opens the Extended Controls window. In here you'll find various controls that invoke device events and mock device sensors. Keyboard shortcuts are available for most actions and are listed in the Help panel, listed on the left. Get Android Emulator 2.0The new Android Emulator is available with Android Studio 2.0 or higher, which is available in both the Stable, Beta and Canary channels. Once you make sure you have the appropriate emulator system image and other tools:
Create new Android Virtual Device (AVD)To take advantage of the new Android Emulator and adb speeds, you need to create new AVDs. In this example below, we are creating a Nexus 5x AVD.
You should see the Android Emulator now start up. TroubleshootingCheck Intel x86 Emulator Accelerator InstallationIf you selected the defaults during the Android Studio installation you should be ready to go. If you created a custom Android Studio installation or run into issues, read the troubleshooting guide below. If your Intel x86 Emulator Accelerator is out of date, Android Studio will automatically inform you and suggest a quick fix to update, as shown in the following screenshot in the AVD Manager. Installing CPU Accelerator (HAXM)If you skipped the initial setup of Android Studio, you should make sure the CPU acceleration is installed. You can manually install Intel x86 Emulator Accelerator by opening intelhaxm-android.exe (on Windows) or intelHAXM_6.0.1.dmg (on Mac) from /sdk/extras/intel/Hardware_Accelerated_Execution_Mangager, as shown below: Installing HAXM in Windows Installing HAXM in OS X For Linux, the Android emulator uses Kernel-based Virtual Machine (KVM). If you are using Ubuntu, you can run check your KVM system compatibility by running the following on the command line: $egrep –c '(vmx|svm)' /proc/cpuinfo on the command line to check for for a return value of greater than 1 To check if you have KVM installed by running the following on the command line: $kvm-ok If KVM is missing or to ensure you have the latest KVM installed, run the following on the command line: $sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils ia32-libs-multiarch The linux commands look like the following on Ubuntu: Known Issues
If you find other issues in the Android Emulator, please file a bug report. We have more features in the pipeline, but if you may also submit feature requests. |
Technical docs >