尝试集成Firebase UI Auth后无法同步Gradle文件

时间:2018-08-29 08:49:52

标签: android-gradle firebase-authentication firebaseui android-maven-plugin

尝试在我的应用程序中集成Firebase UI Auth时出现以下错误:

  

其他[]。[10.2.4,10.2.4],[15.0.1,99999],[15.0.1, 15.0.1]],但解析为15.0.1。禁用插件,并使用./gradlew:app:dependencies检查您的依赖关系树。

我的App 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
}

0 个答案:

没有答案