gpt4 book ai didi

android - Firebase 11.0.2 库的 Google Play 服务版本冲突

转载 作者:搜寻专家 更新时间:2023-11-01 07:45:42 26 4
gpt4 key购买 nike

我将 Firebase 库更新到最新版本,但我无法同步 gradle,这会导致以下错误:

Error:Execution failed for task ':app:processProductionDebugGoogleServices'.

Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.0.2.

如其所述,我也将 gms 版本更新为 11.0.2。这是我的毕业典礼:

compileSdkVersion 25
buildToolsVersion "26.0.0"

//other gradle config

String googleSupportVersion = '25.3.1'
String googlePlayServicesVersion = '11.0.2'

compile "com.google.firebase:firebase-core:$googlePlayServicesVersion"
compile "com.google.firebase:firebase-auth:$googlePlayServicesVersion"
compile "com.android.support:appcompat-v7:$googleSupportVersion"
compile "com.android.support:support-v4:$googleSupportVersion"
compile "com.google.android.gms:play-services:$googlePlayServicesVersion"
compile "com.android.support:design:$googleSupportVersion"
compile 'com.android.support.constraint:constraint-layout:1.0.2'
}
apply plugin: 'com.google.gms.google-services'

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
classpath 'com.google.gms:google-services:3.1.0'
}
}

我该如何解决这个问题?

最佳答案

将你的谷歌服务插件更新到 3.1.0

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:3.1.0'
}
}

关于android - Firebase 11.0.2 库的 Google Play 服务版本冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44881802/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com