Skip to content
Advertisement

Android Emulator does not start at hardware acceleration, linux/ubuntu

i recently reninstalled ubuntu, now i have 17.04 version and android emulator with hardware graphic performance doesnt start.

after starting there is a loading with “starting avd…” but nothing happens.

when i switch graphic performance to software emulator run succesfully but is really slow. before reinstall everything was fine.

things i have tried:

  • i have virtualization in bios enabled
  • i have kvm installed, my cpu support it (kvm-ok)
  • https://help.ubuntu.com/community/KVM/Installation all done
  • sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
  • sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
  • some others perhaps but after all this things i cant remember

Advertisement

Answer

Make sure you are not using ARM image for the emulator. X86 image should work fine and will also take the benefit of hardware acceleration. For an emulator with x86 image and android marshmallow, follow following procedure (Everything from terminal, tested on mac):

  1. Download the system image for emulator by using sdkmanager from terminal. sdkmanager should be present at /sdk/tools/bin/sdkmanager, make sure this bin folder is in path.

sdkmanager “system-images;android-23;google_apis;x86”

  1. Emulator can be created by using avdmanager. avdmanager should be present at sdk/tools/bin/avdmanager. We are using x86_32 android-23 image. You might need to update sdk using “sdkmanager –update” to get avdmanager. Here -n defines the name of the emulator, -b defines the abi to be used and -g is the tag to be used for avd. We don’t need the custom hardware while creating emulator.

avdmanager create avd -n “x86_32_23” -k “system-images;android-23;google_apis;x86” -b “google_apis/x86” -g “google_apis”

  1. Now emulator can be launched

emulator -avd x86_32_23

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement