如何在 Android 模拟器中下载 Google Play 服务? [英] How to download Google Play Services in an Android emulator?

查看:100
本文介绍了如何在 Android 模拟器中下载 Google Play 服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中使用 Google Play 服务 API,但是当我打开模拟器来测试我的应用程序时,它向我发送一条消息,指出必须下载 Google Play 服务".我知道发生这种情况是因为我在我的 MainActivity 中的 onResume() 方法中编写了这个测试.
我想知道如何在模拟器中安装 Google Play 服务,因为很快我将需要测试我的地图.

I want to use Google Play Services API in my application, but when I open the emulator to test my application it sends me a message that says "Google Play Services must be downloaded". I know that occurs because I coded this test in my MainActivity in the method onResume().
I want to know how I can install Google Play Services in my emulator, because soon I will need to test my maps.

推荐答案

查看 设置 Google Play 服务 表示:

要使用 Google Play 服务 API 开发应用程序,您需要使用Google Play 服务 SDK.

To develop an app using the Google Play services APIs, you need to set up your project with the Google Play services SDK.

如果您尚未安装 Google Play 服务 SDK,请按照 添加 SDK 包.

If you haven't installed the Google Play services SDK yet, go get it now by following the guide to Adding SDK Packages.

要在使用 Google Play 服务 SDK 时测试您的应用,您必须使用:

To test your app when using the Google Play services SDK, you must use either:

  • 运行 Android 2.3 或更高版本并包含 Google Play 商店的兼容 Android 设备.
  • 带有 AVD 的 Android 模拟器,运行基于 Android 4.2.2 的 Google API 平台或更高.
  • A compatible Android device that runs Android 2.3 or higher and includes Google Play Store.
  • The Android emulator with an AVD that runs the Google APIs platform based on Android 4.2.2 or higher.

这篇关于如何在 Android 模拟器中下载 Google Play 服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆