Making the Android Emulator Run Faster

Making the Android emulator run faster

Official web page

~50% faster

Windows:

  • Install "Intel x86 Emulator Accelerator (HAXM)" => SDK-Manager/Extras
  • Install "Intel x86 Atom System Images" => SDK-Manager/Android 2.3.3
  • Go to the Android SDK root folder and navigate to extras\intel\Hardware_Accelerated_Execution_Manager. Execute file IntelHaxm.exe to install. (in Android Studio you can navigate to: Settings -> Android SDK -> SDK Tools -> Intel x86 Emulator Accelerator (HAXM installer))

  • Create AVD with "Intel atom x86" CPU/ABI

  • Run emulator and check in console that HAXM running (open a Command Prompt window and execute the command: sc query intelhaxm)

Sample Image

Also don't forget install this one

Sample Image

P.S. during AVD creation add emulation memory: Hardware/New/Device ram size/set up value 512 or more

Linux:

  • Install KVM: open GOOGLE, write "kvm installation "
  • Create AVD with "Intel atom x86" CPU/ABI
  • Run from command line: emulator -avd avd_name -qemu -m 512 -enable-kvm
  • Or run from Eclipse: Run/Run Configurations/Tab "Target" - > check Intel x86 AVD and in "Additional Emulator Command Line Options" window add: -qemu -m 512 -enable-kvm (click Run)

Sample Image

P.S. For Fedora, for Ubuntu

OS-X:

  • In Android SDK Manager, install Intel x86 Atom System Image
  • In Android SDK Manager, install Intel x86 Emulator Accelerator (HAXM)
  • In finder, go to the install location of the Intel Emulator Accelerator and install IntelHAXM (open the dmg and run the installation). You can find the location by placing your mouse over the Emulator Accelerator entry in the SDK Manager.
  • Create or update an AVD and specify Intel Atom x86 as the CPU.
    Intel x86 Emulator Accelerator (HAXM) showing Location

P.S: Check this tool, very convenient even trial

Making the Android emulator run faster explanation of answer

AVD means Android Virtual Device. They most likely mean the that you use the normal emulator in Android Studio.

Here's a link that describes the process

Basically you have several AVD images to pick from, and you have to pick one that has an x86 CPU as opposed to an ARM CPU in the ABI column.

How can I speed up deployment to the android emulator?

Not sure if that's an emulator issue, or just your apk is too heavy, but I'd recommend trying Genymotion just in case, generally is fast as hell compared with the default one.



Related Topics



Leave a reply



Submit