【问题标题】:Gradle DSL method not found 'compile()' (firebase conflict)Gradle DSL 方法未找到'compile()'(firebase 冲突)
【发布时间】:2017-12-10 15:44:59
【问题描述】:

MY ERROR

我一直在查看有关此问题的许多有关 stackoverflow 的帖子,几乎每个人都说可能导致这种情况的主要问题是在项目级 gradle 文件中编译库,但我的文件依赖项如下所示:

dependencies {
    classpath 'com.google.gms:google-services:3.1.0'
    classpath 'com.android.tools.build:gradle:2.3.3'
}

另外,我的应用级 gradle 文件看起来像这样

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'

    compile 'com.android.support:design:25.3.1'
    compile 'com.android.support:appcompat-v7:25.3.1'

    compile 'com.github.bumptech.glide:glide:3.7.0'

    complie 'com.google.firebase:firebase-auth:11.0.2'
    compile 'com.google.firebase:firebase-database:11.0.2'
    compile 'com.firebaseui:firebase-ui-auth:2.0.1'
}

apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.android.application'

它指向 46 行,等于 编译 'com.google.firebase:firebase-auth:11.0.2'

这是我在stackoverflow上的第一篇文章,如果给出的信息可能不正确,非常抱歉,感谢您的帮助

【问题讨论】:

    标签: android firebase gradle firebase-authentication libraries


    【解决方案1】:

    有错别字。

    你写的是complie而不是compile

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-11-19
      • 2015-02-21
      • 2015-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多