Android 4.4.2 中 Google API(x86 系统映像)和 Google API(ARM 系统映像)的区别
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23416448/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Difference between Google APIs (x86 System Image) and Google APIs (ARM System Image) in Android 4.4.2
提问by Amna Ali
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:
我正在关注这个(http://developer.android.com/google/play-services/setup.html#Install)。它要求我为 Android API 17(或更高版本)安装 Google API,但是当我打开 SDK Manager 时,它是这样的:
So, my question is: What are these two Google APIs? And, what is the difference between these two?
所以,我的问题是:这两个 Google API 是什么?而且,这两者有什么区别?
回答by oenpelli
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.
一开始,唯一可用的 Android 系统映像在 ARM 指令集上运行。系统映像用于创建不同的 Android 虚拟设备 (AVD) 并模拟常用的不同 Android 设备。
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.
由于开发人员工作站通常基于 Intel x86,因此也必须模拟 ARM 指令集。这导致 AVD 的性能不佳,主要是因为 x86 处理器为模拟 ARM 指令集而进行的转换量很大。
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.
在 Android 4.0.3 (API 15) 中,英特尔提供了他们自己的基于 x86 的 Android 系统映像。然后可以使用它来创建不需要进行 ARM 转换的 AVD。结合英特尔硬件加速执行管理器 (HAXM),x86 AVM 的速度比同等的 ARM 模拟器快 10 倍。
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.
标准 Android 系统映像不提供对 Google 特定 Android API(如 Android Google 地图 API)的支持。它们需要使用 Android SDK 管理器单独安装。要将这些 API 与 x86 系统映像一起使用,您还需要安装相同 API 级别的 Google API(x86 系统映像)。