首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >也不能通过更新google-services插件的版本来修复版本冲突。

也不能通过更新google-services插件的版本来修复版本冲突。
EN

Stack Overflow用户
提问于 2018-10-08 22:51:35
回答 2查看 229关注 0票数 0

当尝试更新到16.+时

代码语言:javascript
复制
dependencies {
    implementation fileTree(include: '*.jar', dir: 'libs')
    // SUB-PROJECT DEPENDENCIES START
    implementation project(path: 'CordovaLib')
    compile 'com.google.firebase:firebase-inappmessaging-display:17.0.2'
    compile 'com.google.android.gms:play-services-ads:16.0.0'
    compile 'com.facebook.android:facebook-android-sdk:4.35.0'
    compile 'com.google.gms:google-services:3.1.1'
    compile 'com.google.android.gms:play-services-tagmanager:16.0.+'
    compile 'com.google.firebase:firebase-core:16.0.4'
    compile 'com.google.firebase:firebase-messaging:17.3.3'
    compile 'com.google.firebase:firebase-crash:16.2.1'
    compile 'com.google.firebase:firebase-config:16.0.1'
    compile 'com.google.firebase:firebase-perf:16.1.2'
    compile 'com.google.firebase:firebase-dynamic-links:16.1.2'
    compile 'com.google.android.gms:play-services-analytics:16.0.4'
    compile 'com.google.android.gms:play-services-auth:16.0.1'
    compile 'com.google.android.gms:play-services-identity:16.0.0'
    compile 'com.loopj.android:android-async-http:1.4.9'
    compile 'com.android.support:support-v4:24.1.1+'
    compile 'com.android.support:appcompat-v7:26.1.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.+'
    // SUB-PROJECT DEPENDENCIES END
}

请通过更新google插件的版本(有关最新版本的信息可在https://bintray.com/android/android-tools/com.google.gms.google-services/上获得)或将com.google.android.gms的版本更新为16.0.+来解决版本冲突。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-10-08 22:54:35

转到您的Gradle 项目模块,并从那里更新google服务,因为它告诉您这是一个过时的插件

最新版本(作为本答案的日期)

代码语言:javascript
复制
dependencies {
    classpath 'com.google.gms:google-services:4.1.0'
    // ...
}

查看这里文档以找到google服务插件的当前版本。

提示:避免使用与+符号类似的1.0.+'版本,相反,请检查该实现的当前版本。

票数 1
EN

Stack Overflow用户

发布于 2018-10-08 22:58:08

代码语言:javascript
复制
  compile 'com.google.gms:google-services:3.1.1'

我相信你要么需要升级到16,如果没有必要的话就把它移除。

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

https://stackoverflow.com/questions/52711068

复制
相关文章

相似问题

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