Skip to content

Instantly share code, notes, and snippets.

@shauvik
Last active October 24, 2020 04:19
Show Gist options
  • Save shauvik/f482401231176e35f6db to your computer and use it in GitHub Desktop.
Save shauvik/f482401231176e35f6db to your computer and use it in GitHub Desktop.
Android

#Things to try

  • Use host GPU
  • Use x86 image
  • Use HAXM (Intel-Win/Mac) or KVM (Linux)

Guide: http://www.javacodegeeks.com/2013/12/android-boost-up-the-android-emulator-speed-up-to-400-on-intel-based-architecture.html

Emulator Acceleration Guide: http://developer.android.com/tools/devices/emulator.html#acceleration

HAXM details: https://software.intel.com/en-us/android/articles/speeding-up-the-android-emulator-on-intel-architecture

#Troubleshooting

  • HAXM and KVM don't work inside a Virtual Machines (VirtualBox or VMWare) due to missing nested acceleration support.
  • HAX needs to be installed from the binary (exe or dmg file in android-sdk/extras/intel). SDK manager just downloads it.
  • There are ways to accelerate a ARM based emulator but use x86 unless using NDK
  • To be sure that your emulator is using all configured settings, pass on the -verbose flag to the emulator on command line.
  • Windows/Mac - Intel
emulator -avd Nexus_5 -gpu on -verbose
  • Linux
emulator -avd Nexus_5 -qemu -m 1024 -enable-kvm -verbose

On Mac OSX 10.10 Yosemite

https://software.intel.com/en-us/forums/topic/533778

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment