我收到一個錯誤說更新谷歌服務從9.0.0到10.0.1 Android工作室2.2
錯誤:執行失敗的任務':app:processDebugGoogleServices'。
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 9.0.0.
我試圖尋找https://bintray.com/android/android-tools/com.google.gms.google-services/和com.google.gms:谷歌服務:3.0.0似乎是最新的。這是我的gradle項目
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
這是我的應用程序gradle這個看起來像
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "sk.tipos.paradox02.citaj"
minSdkVersion 11
targetSdkVersion 23
versionCode 27
versionName '2.003'
}
buildTypes {
release {
minifyEnabled false
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// signingConfig signingConfigs.release
}
debug {
debuggable true
minifyEnabled false
multiDexEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt')
// signingConfig signingConfigs.release
}
}
productFlavors {
}
lintOptions {
checkReleaseBuilds false
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.google.gms:google-services:3.0.0'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile 'com.google.android.gms:play-services:10.2.0'
compile 'com.google.android.gms:play-services-ads:10.2.0'
compile 'com.google.android.gms:play-services-appindexing:9.8.0'
compile 'com.google.android.gms:play-services-analytics:10.2.0'
compile 'com.google.firebase:firebase-core:9.0.0'
compile 'com.google.firebase:firebase-crash:10.0.1'
compile 'com.google.firebase:firebase-ads:10.0.1'
compile 'com.android.support:multidex:1.0.1'
}
應用插件: 'com.google.gms.google服務'
如果我改變播放服務到9.0.0一切都編譯好。我在這裏錯過了什麼?
你有沒有想過如何解決問題?
感謝
沒有工作這:( – user7575308
招這一行適用的插件:「com.google.gms.google服務」的gradle在文件末尾 –
沒有..錯誤:執行失敗的任務「:應用程序:processDebugGoogleServices」 。 >請通過更新google-services插件的版本來修復版本衝突(有關最新版本的信息,請訪問https://bintray.com/android/android-tools/com.google.gms.google-服務/)或將com.google.android.gms的版本更新爲10.2.0。 – user7575308