找不到com.google.firebase:firebase crashlytics gradle:17.0.0-beta01

找不到com.google.firebase:firebase crashlytics gradle:17.0.0-beta01,firebase,crashlytics-android,Firebase,Crashlytics Android,我试图实现新的Firebase Crashlytics SDK。看完文件后,我发现了以下错误 找不到com.google.firebase:firebase crashlytics gradle:17.0.0-beta01。我找到了以下内容 错误:com.google.firebase:firebase crashlytics gradle:17.0.0-beta01 更正:“com.google.firebase:firebase crashlytics gradle:2.0.0-beta01

我试图实现新的Firebase Crashlytics SDK。看完文件后,我发现了以下错误


找不到com.google.firebase:firebase crashlytics gradle:17.0.0-beta01。

我找到了以下内容

错误:com.google.firebase:firebase crashlytics gradle:17.0.0-beta01


更正:“com.google.firebase:firebase crashlytics gradle:2.0.0-beta01'

要实现新的firebase crashlytics SDK,您需要添加
firebase crashlytics gradle
类路径和
firebase crashlytics
依赖项

在项目级build.gradle文件中,添加Crashlytics gradle插件:

buildscript {
    repositories {
        // Check that you have Google's Maven repository (if not, add it).
        google()
    }

    dependencies {
        // ...

        // Check that you have the Google Services Gradle plugin v4.3.2 or later
        // (if not, add it).
        classpath 'com.google.gms:google-services:4.3.3'

        // Add the Crashlytics Gradle plugin.
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0-beta02'
    }
}

allprojects {
    repositories {
        // Check that you have Google's Maven repository (if not, add it).
        google()
    }
}
apply plugin: 'com.android.application'

apply plugin: 'com.google.gms.google-services' // Google Services Gradle plugin

// Apply the Crashlytics Gradle plugin
apply plugin: 'com.google.firebase.crashlytics'
在应用程序级build.gradle文件中,应用Crashlytics gradle插件:

buildscript {
    repositories {
        // Check that you have Google's Maven repository (if not, add it).
        google()
    }

    dependencies {
        // ...

        // Check that you have the Google Services Gradle plugin v4.3.2 or later
        // (if not, add it).
        classpath 'com.google.gms:google-services:4.3.3'

        // Add the Crashlytics Gradle plugin.
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0-beta02'
    }
}

allprojects {
    repositories {
        // Check that you have Google's Maven repository (if not, add it).
        google()
    }
}
apply plugin: 'com.android.application'

apply plugin: 'com.google.gms.google-services' // Google Services Gradle plugin

// Apply the Crashlytics Gradle plugin
apply plugin: 'com.google.firebase.crashlytics'
在您的应用程序级别build.gradle中,添加谷歌分析和Crashlytics的依赖项

dependencies {
    // Recommended: Add the Firebase SDK for Google Analytics.
    implementation 'com.google.firebase:firebase-analytics:17.2.2'

    // Add the Firebase SDK for Crashlytics.
    implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta01'
}

如果您要从Fabric进行迁移,请不要忘记更新
google services.json
(从Firebase控制台下载)。迁移之后,它可能会改变。描述了迁移


附言:未来奋斗者的答案。

抓得好!您可能希望向Firebase团队报告此情况,并请求更新他们的文档。非常感谢!很好的发现节省了我的时间:)谢谢你的提示。谢谢你的报道。版本号错误的文档将很快更正。