如何在 Android Studio 中编译旧版本的 google 播放服务?

How can I compile the older version of google play service in Android Studio?

我在我的应用程序中尝试了 google 播放服务的新版本 (8.4.0)。这已经成功到运行。 但我想编译较旧的 google 播放服务。 当我在 Android Studio 中更改版本时,它无法同步成功。 我怎样才能编译正确的旧 google 播放服务。我想至少编译 6.0.5 版本。 谢谢!

这里是 build.gradle

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
    applicationId "com.example.tina.releasemap"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
  }

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services:6.5.87'
}

您不能 select 只是 play-services 的随机版本并希望它会起作用。您可以 select 的唯一版本是您通过 IDE.

中的 Android SDK 管理器安装的版本

要检查您的版本,您需要检查您的 SDK 目录。更多信息 here.