4

I'm trying to create an AVD for Android 5, but it's giving me a warning

This AVD may not work unless you install the Google APIs Intel Atom (x86) system image for Android 5.0 (API 21) first.

But I have that installed - this is a screenshot of my SDK manager with the correct System Images installed:

enter image description here

And this is how I'm configuring my AVD:

enter image description here

Am I doing something wrong? How can I get this to work?

DaveDev
  • 41,155
  • 72
  • 223
  • 385

3 Answers3

2

Install Android SDK Build-tools 21 or higher and check Use Host GPU

enter image description here

Patrizio
  • 145
  • 4
  • I've installed all the missing build tools, and updated HAXM to 1.1.1 and I'm still seeing the message, and the AVD still doesn't start. – DaveDev Oct 28 '14 at 14:56
  • if not works switch your emulator target to Android 5.0 without google APi – Patrizio Oct 28 '14 at 15:07
  • 3
    specifying the Host GPU worked in the sense that the AVD runs now, but I'm still seeing the warning. As such, I'll upvote the answer but I can't mark it as correct. It seems to be very flaky software. – DaveDev Oct 28 '14 at 15:22
1

Finally I managed to resolve this issue manually...waiting for a fix by Big G:

Searching between all the various .ini files generated by Android AVD Manager, I found
hardware-qemu.ini
(its location is %USER_FOLDER%/.android/avd/yourAVDName.avd/hardware-qemu.ini).

It contains a row starting with kernel.path pointing to the wrong google apis location.
Once changed it with the right one
(e.g. path_to_android_sdk/system-images\android-19\google_apis\x86/kernel-qemu for Google API 19 version) the emulator started with the right Android version, containing Google APIs.

Hope this helps all Android developers :D

Antlia
  • 21
  • 6
  • Thanks for pointing me in the right direction, but hardware-qemu.ini in my case got overwritten with the old value at every emulator start. I had to change config.ini in the same folder and here 'image.sysdir.1' with the correct imagepath before the very first start of the emulator. – sec_aw Aug 29 '15 at 23:27
0

You will need to install the HAXM driver on your machine in addition to downloading the components. This step is done outside the Android tools.

Booger
  • 18,579
  • 7
  • 55
  • 72