android - 将 Google Play 服务添加到 gradle (Android Studio) 不起作用

标签 android android-studio gradle google-play-services

我有以下问题:

我在 Android Studio 中将 Google Play Servicesv27.0.0 安装到我的 SDK

之后,我将编译依赖项添加到 build.gradle(app 文件夹):

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.android.support:design:23.0.1'
    compile 'com.google.android.gms:play-services:27.0.0'
}

但是当我尝试将项目与 Gradle 同步时,我收到此错误消息:

Error:(25, 13) Failed to resolve: com.google.android.gms:play-services:27.0.0

我不知道该怎么办...

最佳答案

我不认为版本 27.0.0 存在,最新版本是 8.1.0

关于android - 将 Google Play 服务添加到 gradle (Android Studio) 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33025804/

相关文章:

android - 带有API的移动信用卡刷卡系统

android - GridLayout 获取适合区域的按钮

安卓 adb "Unable to open sync connection!"

android - 在 Android 上存储不会在更新或卸载时被删除的文件

gradle - 我无法使用 kotlin 修复 Spring 项目中的错误。请告诉我这些错误的原因

java - 如何生成介于 1 和任何值之间的随机 BigInteger 数字?

java - Android Studio/Robolectric测试随机失败

android-studio - 如何在 Google Play 音乐中添加 float Activity ,如 "Now Playing Music"

java - Hyperledger Fabric 中的 Gradle 编译失败 "Could not find com.github.everit-org.json-schema:org.everit.json.schema:1.11.1."

Gradle Wrapper 不响应命令