Search This Blog

Wednesday, July 2, 2014

Android L preview Emulator under UBUNTU 14.04 x64 & Windows 7 x64 - optimal settings

UBUNTU 14.04 x64:

 sudo apt-get install cpu-checker


$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used


sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils

export LD_LIBRARY_PATH=/home/your_user_name/Develop/android-sdk/tools/lib:$LD_LIBRARY_PATH

sudo apt-get install libgl1-mesa-dev

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so





Start the emulator with:

./emulator-x86 -avd your_avd_name -qemu -m 2047 -enable-kvm

1) select Intel Atom (x86) - for VT-x to work
2) skin - select WVGA800 - for other skins the emulator is too big/small
3) remember to check "Use host GPU"



WINDOWS:

Install:
Intel(R) Hardware Accelerated Execution Manager (HAXM)
with Intel(R) Virtualization Technology (VT)

It's really a must. Without HAXM the emulator is dead slow. Also remember to enable VT-x on your mainboard's BIOS settings for HAXM to work.

1) select Intel Atom (x86) - for VT-x to work
2) skin - select WVGA800 - for other skins the emulator is too big/small
3) do not set more than 700 MB of RAM - Windows does not handle that well
4) remember to check "Use host GPU"




No comments:

Post a Comment

If you like this post, please leave a comment :)