无法通过更新google-services插件的版本来解决版本冲突

时间:2018-10-08 22:51:36

标签: android

当尝试更新到16。+

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-services插件的版本(有关最新版本的信息可从https://bintray.com/android/android-tools/com.google.gms.google-services/获得)或将com.google.android.gms的版本更新为16.0来解决版本冲突。

2 个答案:

答案 0 :(得分:1)

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

最新版本(此答案的日期)

COPY

查看文档here,以找到Google Play服务插件的当前版本。

提示:请避免使用带有{符号的dependencies { classpath 'com.google.gms:google-services:4.1.0' // ... } 这样的版本,而应检查该实现的当前版本。

答案 1 :(得分:0)

  compile 'com.google.gms:google-services:3.1.1'

我相信您需要将其升级到16或在不必要时将其删除