將我的谷歌播放服務更新至第28版後,我收到此錯誤。我不知道爲什麼這會發生,因爲它以前工作正常。錯誤:執行任務':app:processDebugGoogleServices'失敗。 >請修復版本衝突
這裏是我的的build.gradle文件
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.matsoltech.pakistancurrentaffairs"
minSdkVersion 10
targetSdkVersion 23
versionCode 11
versionName "2.1.1"
}
buildTypes {
release {
multiDexEnabled = true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('src/main/libs/universal-image-loader-1.9.3.jar')
compile files('src/main/libs/nineoldandroids-2.4.0.jar')
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:support-v4:23.1.0'
compile 'com.android.support:cardview-v7:23.1.0'
compile 'com.github.ksoichiro:android-observablescrollview:1.5.0'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.mcxiaoke.volley:library:1.0.18'
compile 'com.google.android.gms:play-services-analytics:8.3.0'
}
和
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.google.gms:google-services:1.4.0-beta3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
那麼,誰能告訴我問題出在哪裏?因爲代碼在更新GooglePlayServices之前工作正常。
修好了,非常感謝! Google忘記了更新他們的官方文檔。它仍然提到classpath'com.google.gms:google-services:1.4.0-beta3' –
巨大的感謝之手,當Google對我們做這件事時討厭它:/ – awaistoor
谷歌告訴開發者放這個類路徑?我沒有看到com.google.gms:google-services:1.4.0-beta3 classpath或'com.google.gms:google-services:1.5.0-beta2' – aeroxr1