无法解析上一个 gradle 版本中 android studio 中的 jitpack 依赖项

Meh*_*p73 9 android-studio build.gradle android-gradle-plugin jitpack

我收到Failed to resolve: com.github.dogecoin:libdohj:v0.15.9错误,但我不知道为什么。我还尝试了其他 jitpack 依赖项。它在我之前的项目中运行良好。

buildscript {
    ext {
        compose_version = '1.0.2'
    }
    repositories {
        google()
        maven { url "https://jitpack.io" }
        mavenCentral()

    }

    dependencies {
        classpath "com.android.tools.build:gradle:7.0.2"
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21"
        classpath "com.google.dagger:hilt-android-gradle-plugin:2.38.1"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)

Meh*_*p73 17

我将其添加maven { url "https://jitpack.io" }到 settings.gradle 中并解决了问题。

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        jcenter() // Warning: this repository is going to shut down soon
        maven { url "https://jitpack.io" }

    }
}
rootProject.name = "Crypto World"
include ':app'
Run Code Online (Sandbox Code Playgroud)