适用于 Android Studio 的 Google Play 服务版本 [英] Google Play Services Version for Android Studio

查看:45
本文介绍了适用于 Android Studio 的 Google Play 服务版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从 Eclipse 切换到 Android Studio.在 Eclipse 中将 GPServices 添加到我的项目中非常简单.只需确保在 SDK 管理器中安装了最新的 SDK,并将库从 SDK 包复制到我的工作区.

I'm in the process of switching over to Android Studio from Eclipse. Adding GPServices to my project was pretty straight forward in Eclipse. Just make sure the latest SDK was installed in the SDK manager and copy the library into my workspace from the SDK bundle.

使用 AS,我必须在我的模块中键入以下行build.gradle:

With AS, I have to type the following line into my module build.gradle:

编译'com.google.android.gms:play-services:6.5.87

我怎么知道 6.5.87 是正确的版本?我的 SDK 经理说我有 Google Play Services Rev. 22. 22 看起来与 6.5.87 不同.

How am I supposed to know that 6.5.87 is the right version? My SDK manager says I have Google Play Services Rev. 22. 22 looks different from 6.5.87.

我从一些没有解释其含义的文档中得到 6.5.87.

I got the 6.5.87 from some docs that didn't explain what it meant.

有人能解释一下这个问题吗?

Can someone shed any light to this issue?

推荐答案

在 Android Studio 中,您需要从 SDK Manager 下载 Google Repository 以获得等效的 Google Play Services 在 Eclipse 中.并检查 YOUR_ANDROID_SDK_PATH\extras\google\m2repository\com\google\android\gms\play-se‌ rices,您将能够看到您可以使用哪些版本.

In Android Studio, you need to download the Google Repository from the SDK Manager to get the equivalent of Google Play Services in Eclipse. And check YOUR_ANDROID_SDK_PATH\extras\google\m2repository\com\google\android\gms\play-se‌​rvices and you will be able see which versions you can use.

这篇关于适用于 Android Studio 的 Google Play 服务版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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