如何解决找不到 com.beloo.widget:ChipsLayoutManager:0.3.7
我正在使用存储库 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 > com.github.pchmn:MaterialChipsInput:1.0.8
可能的解决方案:
- 声明提供工件的存储库,请参阅位于 https://docs.gradle.org/current/userguide/declaring_repositories.html 的文档
解决方法
如果它没有上传到 Maven Central,那么你就不能从 Maven Central 获取它。这些是文件存储库,他们必须拥有文件才能将其提供给您。使用jcenter,下载库的代码并构建为本地库,或者寻找其他具有类似功能的库。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。