首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >解析失败: com.google.gms.google-services:15.0.1:

解析失败: com.google.gms.google-services:15.0.1:
EN

Stack Overflow用户
提问于 2018-05-13 02:41:12
回答 5查看 6.4K关注 0票数 2

我已经在sdk工具中安装了播放服务,并添加了以下库,尽管它显示了问题

代码语言:javascript
复制
   compile 'com.android.support:appcompat-v7:26.1.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.firebase:geofire-android:2.1.1'
    compile 'com.google.gms.google-services:15.0.1'
    compile 'com.google.android.gms:play-services-maps:15.0.1'
    compile 'com.google.android.gms:play-services-drive:15.0.1'
    compile 'com.github.bumptech.glide:glide:4.0.0'
    compile 'com.android.support:design:26.1.0'
    compile 'com.android.support:cardview-v7:26.1.0'
    compile 'com.github.jd-alexander:library:1.1.0'

    compile 'com.paypal.sdk:paypal-android-sdk:2.15.3'
    testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
EN

回答 5

Stack Overflow用户

发布于 2018-05-13 02:50:05

从依赖项中删除com.google.gms.google-services:15.0.1,这是一个gradle文件插件,而不是依赖项。

代码语言:javascript
复制
def mySupportVersion = "26.1.0"

dependencies {
    compile "com.android.support:appcompat-v7:$mySupportVersion"
    compile "com.android.support:design:$mySupportVersion"
    compile "com.android.support:cardview-v7:$mySupportVersion"
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.firebase:geofire-android:2.1.1'
    compile "com.google.android.gms:play-services-maps:15.0.1"
    compile "com.google.android.gms:play-services-drive:15.0.1"
    compile 'com.github.bumptech.glide:glide:4.0.0'
    compile 'com.github.jd-alexander:library:1.1.0'
    compile 'com.paypal.sdk:paypal-android-sdk:2.15.3'
    testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

在更改版本时,您应该使用def以获得灵活性。

票数 1
EN

Stack Overflow用户

发布于 2018-07-04 14:19:04

这些选项可以是

代码语言:javascript
复制
change versions of play services
 remove unused services
 if using maps, check permission of google place api
[https://firebase.google.com][1] should be proper configured
google-play.json file should be updated with project.
票数 1
EN

Stack Overflow用户

发布于 2018-07-31 18:53:00

我认为取消选中Offline work选项可能会解决这个问题。查看我的答案Here

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50309559

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档