简体   繁体   English

Android SDK中的Google API有何区别?

[英]What is the difference between Google APIs in Android SDK

Since android 5.0, Google added Google APIs . 自Android 5.0以来,Google添加了Google API what is that exactly? 究竟是什么?

And what is the difference between Google APIs intel atom_64 x86 system image and Google APIs intel atom x86 system image? Google API intel atom_64 x86系统映像和Google API intel atom x86系统映像有什么区别?

I know that intel atom images is much faster, but there is a lot of them. 我知道英特尔原子图像要快得多,但它们有很多。

and what version should I use as my main emulator? 我应该使用什么版本作为我的主要模拟器?

在此输入图像描述

Since android 5.0, Google added Google APIs. 自Android 5.0以来,Google添加了Google API。 what is that exactly? 究竟是什么?

A few library jars and corresponding documentation. 一些库罐和相应的文档。 See the add-ons directory in your Android SDK. 请参阅Android SDK中的add-ons目录。 From add-ons/addon-google_apis-google-23/manifest.ini : 来自附加组件/ addon-google_apis-google-23 / manifest.ini

# details for each library
com.google.android.maps=maps.jar;API for Google Maps
com.android.future.usb.accessory=usb.jar;API for USB Accessories
com.google.android.media.effects=effects.jar;Collection of video effects

Typically, you do not need to install Google APIs . 通常,您不需要安装Google API

And what is the difference between Google APIs intel atom_64 x86 system image and Google APIs intel atom x86 system image? Google API intel atom_64 x86系统映像和Google API intel atom x86系统映像有什么区别? ... and what version should I use as my main emulator? ...我应该使用什么版本作为我的主要模拟器?

One is 64-bit, the other is 32-bit. 一个是64位,另一个是32位。 64-bit may be slightly faster depending on your machine's architecture. 64位可能会稍微快一些,具体取决于您机器的架构。 From https://software.intel.com/en-us/android/articles/how-to-develop-and-evaluate-64-bit-android-apps-on-intel-x86-platforms : 来自https://software.intel.com/en-us/android/articles/how-to-develop-and-evaluate-64-bit-android-apps-on-intel-x86-platforms

Android L with 64-bit technologies for Intel Atom processor-based platforms can help developers to optimize their applications now. 采用64位技术的Android L基于英特尔凌动处理器的平台可以帮助开发人员立即优化他们的应用程序。 Building Android applications for 64-bit is just as easy as building traditional 32-bit Android applications. 构建64位的Android应用程序就像构建传统的32位Android应用程序一样简单。 You can now use the official Android 64-bit emulator to run and debug 64-bit apps. 您现在可以使用官方的Android 64位模拟器来运行和调试64位应用程序。 To test the performance of 64-bit x86 Android platforms, we rebuilt several open source projects to 64-bit and had several top ISVs in PRC build 64-bit versions of their apps. 为了测试64位x86 Android平台的性能,我们将几个开源项目重建为64位,并在PRC中建立了几个顶级ISV,构建了64位版本的应用程序。 The performance benchmarks show 7-8% (or even 20% on one special case) performance gains using 64-bit compared to 32-bit. 性能基准测试表明,与32位相比,使用64位的性能提升了7-8%(甚至在一个特殊情况下为20%)。

Typically, you only need to install Google APIs Intel x86 Atom_64 System Image in order to create an emulator with Google APIs. 通常,您只需要安装Google API Intel x86 Atom_64 System Image ,以便使用Google API创建模拟器。 As mentioned above, you do not need to install the separate Google APIs package. 如上所述,您无需安装单独的Google API包。

If you do not use any Google APIs, you could install Intel x86 Atom_64 System Image instead. 如果您不使用任何Google API,则可以安装Intel x86 Atom_64 System Image

Android API s are part of Google API s. Android APIGoogle API的一部分。 Google API s contain Android API s, Google Map API s, Google Services API s, Google Plus API s and something like that. Google API包含Android APIGoogle Map APIGoogle Services APIGoogle Plus API等等。

Additionally to SilentKnight Answer, Please also refer to this link. 除了SilentKnight答案,请参阅此链接。

https://developers.google.com/android/reference/packages https://developers.google.com/android/reference/packages

https://developers.google.com/android/guides/api-client https://developers.google.com/android/guides/api-client

  1. Also see Jan Gerlinger answer 另见Jan Gerlinger的回答

    What is google API and framework API 什么是谷歌API和框架API

    According to Jan Gerlinger = 根据Jan Gerlinger =

    Android is developed by Google, but can also be used without any Google services. Android是由Google开发的,但也可以在没有任何Google服务的情况下使用。 So the Android platform SDK can be used for developing Android applications. 因此Android平台SDK可用于开发Android应用程序。 If you however want to use any Google services in your Android Application, you should use the Google API Java Client library. 但是,如果您想在Android应用中使用任何Google服务,则应使用Google API Java客户端库。

  2. And oenpelli answer oenpelli回答

    Difference between Google APIs (x86 System Image) and Google APIs (ARM System Image) in Android 4.4.2 Android 4.4.2中的Google API(x86系统映像)和Google API(ARM系统映像)之间的差异

    According to oenpelli statement = 根据oenpelli声明=

    In the beginning the only Android system images available ran on the ARM instruction set. 最初,ARM指令集上只有可用的Android系统映像。 A system image is used to create different Android Virtual Devices (AVDs) and emulate the different Android devices in common use. 系统映像用于创建不同的Android虚拟设备(AVD)并模拟常用的不同Android设备。

    As developer workstations are usually Intel x86 based, the ARM instruction set had to be emulated as well. 由于开发人员工作站通常基于Intel x86,因此必须模拟ARM指令集。 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. 这导致AVD的性能不佳,主要是因为x86处理器正在进行的转换量也模拟了ARM指令集。

    At Android 4.0.3 (API 15) Intel provided their own x86 based Android system image. 在Android 4.0.3(API 15)上,英特尔提供了自己的基于x86的Android系统映像。 This could then be used to create AVDs that did not need to do ARM translation. 然后可以使用它来创建不需要进行ARM转换的AVD。 Combined with the Intel Hardware Accelerated Execution Manager (HAXM) the x86 AVMs were up to 10 times faster than the equivalent ARM emulators. 结合英特尔硬件加速执行管理器(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. 标准的Android系统映像不提供对Android特定Android API(如Android Google Maps API)的支持。 They need to be installed separately using the Android SDK Manager. 它们需要使用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. 要将这些API与x86系统映像一起使用,您还需要为相同的API级别安装Google API(x86系统映像)。

Each emulator has a different processor architecture. 每个仿真器都有不同的处理器架构。

I usually use the ARMv7 architecture, but it's probably best to test on all architectures to support more phones when you release your app. 我通常使用ARMv7架构,但最好在所有架构上进行测试,以便在发布应用程序时支持更多手机。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google+ API 和 Google+ 域 API 之间有什么区别? - What Is The Difference Between Google+ APIs and Google+ Domain APIs? 目标谷歌API和目标android之间的区别 - Difference between target google APIs and target android Android - compileSDKVersion“Google Inc.:Google API:22”和“22”之间有什么区别? - Android - What is the difference between compileSDKVersion “Google Inc.:Google APIs:22” & “22”? Android:SDK和库项目有什么区别 - Android: What is the difference between SDK and library project Android 4.4.2中的Google API(x86系统映像)和Google API(ARM系统映像)之间的差异 - Difference between Google APIs (x86 System Image) and Google APIs (ARM System Image) in Android 4.4.2 “min sdk,target sdk和compile with”有什么区别?在android中 - what is the difference between “min sdk , target sdk and compile with ” ? in android Android SDK 组件中的 SDK 工具和构建工具有什么区别? - What is difference between SDK tool and Build Tool in Android SDK Components? Box API和OneCloud API之间有什么区别,仅iPhone sdk OneCloud吗? - What is the difference between the Box API and OneCloud APIs and is the iPhone sdk OneCloud only? Android API 和 Google API 有什么区别? - What is the difference between Android API and Google API? compileSdkVersion'Google Inc.:Google APIs:23'和compileSdkVersion 23之间有什么区别? - what is difference between compileSdkVersion 'Google Inc.:Google APIs:23' and compileSdkVersion 23
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM