Обновляя зависимости в android studio я встречаюсь со следующей ошибкой.
Error:Execution failed for task ':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.
Ранее у него были зависимости от следующей формы.
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
abuildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.android.myapp"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
compile 'com.android.support:support-v4:24.0.0'
compile 'com.android.support:cardview-v7:24.0.0'
compile 'com.android.support:design:24.0.0'
compile 'com.android.support:palette-v7:24.0.0'
compile 'com.android.support:mediarouter-v7:24.0.0'
compile 'com.google.firebase:firebase-ads:9.0.0'
compile 'com.google.firebase:firebase-crash:9.0.0'
compile 'com.google.firebase:firebase-analytics:9.0.0'
compile 'com.google.android.gms:play-services-ads:9.0.0'
}
apply plugin: 'com.google.gms.google-services'
Ошибка выходит у меня, изменив линию
compile 'com.google.android.gms:play-services-ads:9.0.0'
в
compile 'com.google.android.gms:play-services-ads:9.2.0'
Он проверяет, что ты не считал активизированным она opciГіn "Offline work" Gradle, это может быть одна razГіn, из-за которой он не разгружает depenencia, я вижу, что она versiГіn, если существует . Это последовательность, чтобы соглашаться с menГє:
File
> Settings
> Build, Execution, Deployment
> Build tools> Gradle
Синхронизирует твой проект с архивами Gradle!
Заверяет в том, что обновляет Гєltima versiГіn Google Плаи Сервисес и Google Repository для того, чтобы ты смог выносить Гєltima versiГіn play-services-ads:9.2.0
В архиве Gradle твоего проекта у тебя есть
dependencies {
classpath 'com.google.gms:google-services:3.0.0'
}
Это Гєltima versiГіn с plugin до dГ - в сегодня. До тех пор, пока они не обновят plugin для того, чтобы вынес ее versiГіn 9.2.0, ты будешь должен возвращать в нее versiГіn 9.0.2