Gradle同步失败-com.google.android.gms:其他各种图书馆正在请求play services Basic

Gradle同步失败-com.google.android.gms:其他各种图书馆正在请求play services Basic,android,firebase,dependencies,Android,Firebase,Dependencies,图书馆com.google.android.gms:play services Basic正被其他各种图书馆在[[11.0.1,11.0.1]、[15.0.1,15.0.1]]请求,但已解决为15.0.1。禁用插件并使用./gradlew:app:dependencies检查依赖关系树。 当我试图在我的android项目上添加Firebase时,我遇到了这个错误。我已经做了所有可能的事情来解决这个错误,但是我仍然遇到了这个错误。请给我一些建议来解决这个问题 应用程序级依赖关系 reposi

图书馆com.google.android.gms:play services Basic正被其他各种图书馆在[[11.0.1,11.0.1]、[15.0.1,15.0.1]]请求,但已解决为15.0.1。禁用插件并使用./gradlew:app:dependencies检查依赖关系树。

当我试图在我的android项目上添加Firebase时,我遇到了这个错误。我已经做了所有可能的事情来解决这个错误,但是我仍然遇到了这个错误。请给我一些建议来解决这个问题

应用程序级依赖关系

   repositories {
        maven {
            url "http://dl.bintray.com/lukaville/maven"
        }
    }
    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        //noinspection GradleCompatible
        implementation 'com.android.support:appcompat-v7:27.1.1'
        implementation 'com.android.support:cardview-v7:27.1.1'
        implementation 'com.android.support:recyclerview-v7:27.1.1'
        implementation 'com.android.support.constraint:constraint-layout:1.1.3'
        implementation 'com.android.support:design:27.1.1'
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'com.android.support.test:runner:1.0.2'
        androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
        implementation 'de.hdodenhof:circleimageview:2.1.0'
        implementation 'com.applozic.communication.uiwidget:mobicomkitui:5.8.4'
        implementation 'com.facebook.android:facebook-login:4.28.0'
        implementation 'com.facebook.android:account-kit-sdk:4.28.0'
        implementation 'com.facebook.android:facebook-android-sdk:4.28.0'
        implementation 'com.miguelcatalan:materialsearchview:1.4.0'
        implementation 'com.android.support:design:27.1.1'
        implementation 'com.android.support:support-v4:27.1.1'
        implementation 'com.google.android.gms:play-services-auth:16.0.0'
        implementation 'com.google.android.gms:play-services-ads:15.0.1'
        //noinspection GradleCompatible
        implementation 'com.borjabravo:readmoretextview:2.0.1'
        implementation 'com.gmail.samehadar:iosdialog:1.0'
        implementation 'com.gdacciaro:iosdialog:1.0.3'
        implementation 'com.wdullaer:materialdatetimepicker:3.6.0'
        implementation 'com.bignerdranch.android:recyclerview-multiselect:0.2'
        implementation 'com.wrapp.floatlabelededittext:library:0.0.6'
        implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
        implementation 'com.android.volley:volley:1.1.0'
        implementation 'com.android.support:recyclerview-v7:27.1.1'
        implementation 'com.github.bumptech.glide:glide:4.7.1'
        implementation 'com.squareup.okhttp3:okhttp:3.10.0'
        implementation 'com.squareup.retrofit2:retrofit:2.3.0'
        implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
        implementation 'com.google.code.gson:gson:2.8.2'
        implementation 'com.ms-square:expandableTextView:0.1.4'
        implementation 'com.nbsp:library:1.8'
        implementation 'net.gotev:uploadservice:2.1'
        implementation 'javax.mail:javax.mail-api:1.5.3'

        implementation 'com.google.firebase:firebase-core:16.0.3'

        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'com.android.support.test:runner:1.0.2'
        androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    }
    apply plugin: 'com.google.gms.google-services'
buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.0'
        classpath 'com.google.gms:google-services:4.1.0'

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

allprojects {
    repositories {
        google()
        jcenter()
    }
}
项目级依赖关系

   repositories {
        maven {
            url "http://dl.bintray.com/lukaville/maven"
        }
    }
    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        //noinspection GradleCompatible
        implementation 'com.android.support:appcompat-v7:27.1.1'
        implementation 'com.android.support:cardview-v7:27.1.1'
        implementation 'com.android.support:recyclerview-v7:27.1.1'
        implementation 'com.android.support.constraint:constraint-layout:1.1.3'
        implementation 'com.android.support:design:27.1.1'
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'com.android.support.test:runner:1.0.2'
        androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
        implementation 'de.hdodenhof:circleimageview:2.1.0'
        implementation 'com.applozic.communication.uiwidget:mobicomkitui:5.8.4'
        implementation 'com.facebook.android:facebook-login:4.28.0'
        implementation 'com.facebook.android:account-kit-sdk:4.28.0'
        implementation 'com.facebook.android:facebook-android-sdk:4.28.0'
        implementation 'com.miguelcatalan:materialsearchview:1.4.0'
        implementation 'com.android.support:design:27.1.1'
        implementation 'com.android.support:support-v4:27.1.1'
        implementation 'com.google.android.gms:play-services-auth:16.0.0'
        implementation 'com.google.android.gms:play-services-ads:15.0.1'
        //noinspection GradleCompatible
        implementation 'com.borjabravo:readmoretextview:2.0.1'
        implementation 'com.gmail.samehadar:iosdialog:1.0'
        implementation 'com.gdacciaro:iosdialog:1.0.3'
        implementation 'com.wdullaer:materialdatetimepicker:3.6.0'
        implementation 'com.bignerdranch.android:recyclerview-multiselect:0.2'
        implementation 'com.wrapp.floatlabelededittext:library:0.0.6'
        implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
        implementation 'com.android.volley:volley:1.1.0'
        implementation 'com.android.support:recyclerview-v7:27.1.1'
        implementation 'com.github.bumptech.glide:glide:4.7.1'
        implementation 'com.squareup.okhttp3:okhttp:3.10.0'
        implementation 'com.squareup.retrofit2:retrofit:2.3.0'
        implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
        implementation 'com.google.code.gson:gson:2.8.2'
        implementation 'com.ms-square:expandableTextView:0.1.4'
        implementation 'com.nbsp:library:1.8'
        implementation 'net.gotev:uploadservice:2.1'
        implementation 'javax.mail:javax.mail-api:1.5.3'

        implementation 'com.google.firebase:firebase-core:16.0.3'

        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'com.android.support.test:runner:1.0.2'
        androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    }
    apply plugin: 'com.google.gms.google-services'
buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.0'
        classpath 'com.google.gms:google-services:4.1.0'

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

allprojects {
    repositories {
        google()
        jcenter()
    }
}

我不确定这个问题的根本原因(可能是一些黑魔法)。 加:

转到应用程序级别的build.gradle文件

听取了以下方面的意见:


我很沮丧,因为我不明白这样做的原因。但是它可能会有帮助。

你说没有Firebase它可以工作,对吗?是的,没有Firebase它也可以工作。如果平台文件没有签入版本控制系统,那么在该系统上工作的每个开发人员都必须手动执行此操作吗?