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

查看:144
本文介绍了适用于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:

compile 'com.google.android.gms:play-services:6.5.87

我应该怎么知道6.5.87是正确的版本?我的SDK经理说我拥有Google Play服务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,以在Eclipse中获得与Google Play Services等效的功能.然后检查YOUR_ANDROID_SDK_PATH\extras\google\m2repository\com\google\android\gms\play-se‌​rvices,您将可以看到可以使用的版本.

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天全站免登陆