100

I was following this (http://developer.android.com/google/play-services/setup.html#Install). It asked me to install Google APIs for Android API 17 (or higher) but when i opened SDK Manager, this is how it looked like:

SDK Manager

So, my question is: What are these two Google APIs? And, what is the difference between these two?

2
  • 1
    IIRC, they are for different processors.
    – Mike D
    Commented May 1, 2014 at 21:01
  • 15
    The ARM image more closely matches most Android devices, but requires the processor to be emulated and is thus very slow. The x86 is potentially quite a bit faster, possibly using virtual machine support mechanisms to execute the code in a partially native way. You can try the x86 for speed, and fallback to the ARM if you have compatibility problems. See developer.android.com/tools/devices/emulator.html Commented May 1, 2014 at 22:17

1 Answer 1

135

In the beginning the only Android system images available ran on the ARM instruction set. A system image is used to create different Android Virtual Devices (AVDs) and emulate the different Android devices in common use.

As developer workstations are usually Intel x86 based, the ARM instruction set had to be emulated as well. This resulted in poor performance from the AVDs due mainly to the amount of translation the x86 processor was doing to also emulate the ARM instruction set.

At Android 4.0.3 (API 15) Intel provided their own x86 based Android system image. This could then be used to create AVDs that did not need to do ARM translation. Combined with the Intel Hardware Accelerated Execution Manager (HAXM) the x86 AVMs were up to 10 times faster than the equivalent ARM emulators.

Support for Google specific Android APIs like the Android Google maps API, are not provided with the standard Android system images. They need to be installed separately using the Android SDK Manager. To use these APIs with an x86 system image you need to also install the Google APIs (x86 System Image) for the same API level.

12
  • 4
    So which do I choose when I right click my project, go to properties, and go to android?
    – Andrew
    Commented Sep 4, 2014 at 21:37
  • 5
    Click both of these: (1) Intel x86 Atom System Image and (2) Google APIs (x86 System Image) See here for more details: software.intel.com/en-us/blogs/2014/03/06/…
    – user64141
    Commented Oct 16, 2014 at 18:01
  • 2
    @oenpelli, What does "API" in "Google APIs" refer to? When we select to install "Google APIs", what actually happens? Does it just download the Android Java libraries used by Google or are there other system code involved?
    – Pacerier
    Commented Jul 1, 2015 at 8:05
  • 1
    @Pacerier with "Google APIs" you can set up google account inside emulator, which is not available in pure Android image. Google Maps api added as well in case your app needs it. Commented Aug 30, 2016 at 10:51
  • 5
    what is the difference between google api image and google play image? Commented Jul 14, 2017 at 15:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.