firebase – 无法通知依赖项解析侦听器.

前端之家收集整理的这篇文章主要介绍了firebase – 无法通知依赖项解析侦听器.前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
错误:无法通知依赖项解析侦听器.
图书馆com.google. android.gms:play-services-measurement-base正在[[15.0.2,15.0.2],[15.0.4,15.0.4]]的各种其他图书馆提出要求,但已解决为15.0.4.禁用插件并使用./gradlew:app:dependencies检查依赖关系树.
apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.intraday.geeks"
        minSdkVersion 21
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs',include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.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 'com.android.support:design:26.1.0'
    implementation 'com.google.firebase:firebase-core:15.0.4'
    implementation 'com.google.android.gms:play-services-location:15.0.4'
    implementation 'com.google.firebase:firebase-ads:15.0.1'
    implementation 'com.google.firebase:firebase-core:16.0.0'
    implementation 'com.google.firebase:firebase-auth:16.0.0'
    implementation 'com.firebaseui:firebase-ui:0.6.2'
}



apply plugin: 'com.google.gms.google-services'
你有类路径’com.google.gms:google-services:4.0.1’吗?

这是4.0.1!我将它从4.0.0更新到4.0.1,没关系!

如果它仍然不起作用,您可以这样做,手动添加而不使用plugin

猜你在找的设计模式相关文章