适用于Android Studio的Google Play服务版

Dea*_*ely 4 android google-play-services android-studio

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

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

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

我怎么知道6.5.87是正确的版本?我的SDK管理员说我有Google Play服务第22版.22看起来与6.5.87不同.

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

有人能否解决这个问题?

Y.S*_*Y.S 5

在Android Studio中,您需要Google Repository从SDK Manager 下载以获得与Google Play ServicesEclipse 相同的功能.并检查YOUR_ANDROID_SDK_PATH\extras\google\m2repository\com\google\android\gms\play-se??rvices,您将看到可以使用的版本.