Невозможно синхронизировать файл Gradle после попытки интеграции Firebase UI Auth - PullRequest
0 голосов
/ 29 августа 2018

При попытке интегрировать аутентификацию пользовательского интерфейса Firebase в мое приложение появляется следующая ошибка:

Библиотека com.google.android.gms: play-services-tasks запрашивается различными другими библиотеками по адресу [[10.2.4,10.2.4], [15.0.1,99999], [15.0.1, 15.0.1]], но разрешается до 15.0.1. Отключите плагин и проверьте дерево зависимостей, используя ./gradlew: app: dependencies.

Файл моего приложения Gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    buildToolsVersion '27.0.3'
    defaultConfig {
        resConfigs "en" // And any other languages you support
        applicationId "vision.google.com.unicesscustomer"
        minSdkVersion 19
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

}



dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    // FirebaseUI for Firebase Realtime Database
    compile 'com.android.support:appcompat-v7:27.1.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.google.zxing:core:3.2.1'
    compile 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
    implementation 'com.google.firebase:firebase-auth:16.0.3'
    compile 'com.android.support:support-v4:27.1.1'
    compile 'com.android.support:support-vector-drawable:27.1.1'
  //  implementation 'com.firebaseui:firebase-ui-auth:4.1.0'
    compile 'com.google.firebase:firebase-database:10.2.4'
    compile 'com.github.ittianyu:BottomNavigationViewEx:1.2.4'
    compile 'id.zelory:compressor:2.0.0'
    compile 'com.android.support:design:27.1.1'
    compile 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
    compile 'com.firebaseui:firebase-ui-database:1.2.0'
    compile 'com.google.firebase:firebase-storage:10.2.4'
    implementation 'com.squareup.picasso:picasso:2.71828'
    compile 'com.razorpay:checkout:1.4.5'
    implementation 'de.hdodenhof:circleimageview:2.2.0'

    testCompile 'junit:junit:4.12'
}

apply plugin: 'com.google.android.gms.strict-version-matcher-plugin'

Файл моего проекта Gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.google.gms:google-services:3.3.0'
        classpath 'com.android.tools.build:gradle:3.1.0'
        classpath 'com.google.android.gms:strict-version-matcher-plugin:1.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {

        mavenCentral()
        maven { url "https://jitpack.io" }
        maven { url "https://maven.google.com" }

        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
...