0

我正在使用存储库 mavenCentral() 因为 jcenter() 已被弃用。我想实现 com.beloo.widget:ChipsLayoutManager:0.3.7。但这是在 jcenter() 上上传的。

在 mavenCentral() 中使用 com.beloo.widget:ChipsLayoutManager:0.3.7 的任何解决方案

allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
dependencies {

    implementation 'androidx.appcompat:appcompat:1.3.0'
    implementation 'com.google.android.material:material:1.3.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'com.google.firebase:firebase-auth:21.0.1'
    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
    implementation 'com.github.pchmn:MaterialChipsInput:1.0.8'
    implementation 'com.beloo.widget:ChipsLayoutManager:0.3.7'

}

错误:

任务“:app:checkDebugAarMetadata”执行失败。

无法解析配置“:app:debugRuntimeClasspath”的所有文件。找不到 com.beloo.widget:ChipsLayoutManager:0.3.7。在以下位置搜索: - https://dl.google.com/dl/android/maven2/com/beloo/widget/ChipsLayoutManager/0.3.7/ChipsLayoutManager-0.3.7.pom - https://repo.maven .apache.org/maven2/com/beloo/widget/ChipsLayoutManager/0.3.7/ChipsLayoutManager-0.3.7.pom - https://jitpack.io/com/beloo/widget/ChipsLayoutManager/0.3.7/ChipsLayoutManager-0.3 .7.pom 要求:项目:app 项目:app > com.github.pchmn:MaterialChipsInput:1.0.8

可能的解决方案:

4

1 回答 1

0

如果它没有上传到 Maven Central,那么你就无法从 Maven Central 获取它。这些是文件存储库,他们必须拥有文件才能将其提供给您。使用jcenter,下载库的代码并将其构建为本地库,或者找到另一个具有类似功能的库。

于 2021-05-29T06:44:28.083 回答