错误编译Firebase库

时间:2017-09-03 08:14:31

标签: android firebase

我正在项目中实施Firebase Notifications,但收到编译错误

    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0'
        classpath 'com.google.gms:google-services:3.1.0' // google-services plugin

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

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com" // Google's Maven repository
        }
    }
}

dependencies {
    compile 'com.google.firebase:firebase-core:11.2.0'

}
apply plugin: 'com.google.gms.google-services'

在sdk manager Play服务中,谷歌存储库是安装和更新。

错误日志:

Error:(46, 13) Failed to resolve: com.google.firebase:firebase-core:11.2.0
<a href="openFile:D:/dev/workspace/android/Music/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

怎么了?我该如何解决这个问题?

0 个答案:

没有答案