小编Amm*_*lah的帖子

无法为 Gradle 版本 7.2 添加 Firebase Crashlytics

无法在 Android 中为 Gradle 7.2 添加 Firebase Crashlytics 依赖项/类路径

我应该写在哪里。

classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.0'
Run Code Online (Sandbox Code Playgroud)

我成功地将 Google 服务映射为。

    classpath 'com.google.gms:google-services:4.3.10'    
    //to
    id "com.google.gms.google-services" version "4.3.10" apply false
Run Code Online (Sandbox Code Playgroud)

如果我映射 Crashlytics 类路径,则会出现以下错误

Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.google.firebase.firebase-crashlytics-gradle', version: '2.9.0', apply: false] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.google.firebase.firebase-crashlytics-gradle:com.google.firebase.firebase-crashlytics-gradle.gradle.plugin:2.9.0')
  Searched in the following repositories:
    Gradle Central Plugin Repository
    Google
    MavenRepo
    BintrayJCenter
    maven(https://jitpack.io)
Run Code Online (Sandbox Code Playgroud)

项目级别 Gradle …

android crashlytics android-gradle-plugin android-gradle-7.0

18
推荐指数
4
解决办法
2万
查看次数