Я получаю эту ошибку
6: 11 PM Сбой синхронизации: не удалось уведомить слушателя разрешения зависимостей.Библиотека com.google.android.gms: play-services-basement запрашивается различными другими библиотеками по [[11.0.4,11.0.4], [15.0.1,15.0.1]], но разрешается до 15.0.1.Отключите плагин и проверьте дерево зависимостей, используя ./gradlew: приложение: зависимости
build.gradle (Проект)
buildscript {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'io.fabric.tools:gradle:1.25.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:4.0.0'
// classpath 'com.google.gms:google-services:3.2.0'
}
}
allprojects {
// ...
repositories {
// ...
maven {
url 'https://maven.google.com/'
}
}
repositories {
// ...
google() // Google's Maven repository
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
build.gradle (модуль: приложение)
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
compileSdkVersion 26
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.neoline.whrilloprovider"
minSdkVersion 17
targetSdkVersion 26
vectorDrawables.generatedDensities = ['hdpi', 'xxhdpi']
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled = true
vectorDrawables.useSupportLibrary = true
}
aaptOptions {
additionalParameters '— no-version-vectors'
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/ASL2.0'
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.0.2'
// implementation 'com.google.android.gms:play-services-maps:11.6.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
// compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.google.android.gms:play-services:11.0.4'
compile 'com.android.support:multidex:1.0.2'
compile 'com.android.support:recyclerview-v7:26.0.2'
testCompile 'junit:junit:4.12'
compile 'com.google.firebase:firebase-core:16.0.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
testCompile 'junit:junit:4.12'
compile 'com.android.support:multidex:1.0.1'
implementation 'com.squareup.picasso:picasso:2.3.2'
compile('com.crashlytics.sdk.android:crashlytics:2.9.0@aar') {
transitive = true
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
google()
}
}
apply plugin: 'com.google.gms.google-services'