找不到com.google.firebase:firebase-plugins

时间:2018-12-10 16:54:15

标签: android firebase android-studio gradle

Gradle同步曾经可以正常工作,但出现此错误。看来服务器端缺少一些文件。

自今天下午以来,我遇到了这个错误。我没有更新库。

构建同步:

Could not find com.google.firebase:firebase-plugins:1.1.4.
Searched in the following locations:
    https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-plugins/1.1.4/firebase-plugins-1.1.4.pom
    https://dl.google.com/dl/android/maven2/com/google/firebase/firebase-plugins/1.1.4/firebase-plugins-1.1.4.jar
    https://jcenter.bintray.com/com/google/firebase/firebase-plugins/1.1.4/firebase-plugins-1.1.4.pom
    https://jcenter.bintray.com/com/google/firebase/firebase-plugins/1.1.4/firebase-plugins-1.1.4.jar
    https://maven.fabric.io/public/com/google/firebase/firebase-plugins/1.1.4/firebase-plugins-1.1.4.pom
    https://maven.fabric.io/public/com/google/firebase/firebase-plugins/1.1.4/firebase-plugins-1.1.4.jar
Required by:
    project :

我的顶级build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {

    ext.kotlin_version = '1.3.10'
    ext.support_version = '28.0.0'

    repositories {
        google()
        jcenter()
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {

        // Android Studio
        classpath 'com.android.tools.build:gradle:3.2.1'

        // Kotlin
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        // Firebase
        classpath 'com.google.gms:google-services:4.2.0'
        classpath 'io.fabric.tools:gradle:1.26.0'
        classpath 'com.google.firebase:firebase-plugins:1.1.4'

        // voir https://github.com/maskarade/gradle-android-ribbonizer-plugin
        classpath 'com.github.gfx.ribbonizer:ribbonizer-plugin:2.1.0'

    }

}

allprojects {
    repositories {
        jcenter()
        google()
        maven { url "https://maven.google.com/" }
    }
}

你有什么主意吗?谢谢。

0 个答案:

没有答案