【发布时间】:2021-12-15 03:23:10
【问题描述】:
我试图包含 spinkit,但是当我构建项目时它给了我错误
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.github.ybq:Android-SpinKit:1.4.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/ybq/Android-SpinKit/1.4.0/Android-SpinKit-1.4.0.pom
- https://repo.maven.apache.org/maven2/com/github/ybq/Android-SpinKit/1.4.0/Android-SpinKit-1.4.0.pom
Required by:
project :app
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
我不知道为什么它突然发生了
【问题讨论】:
-
你添加
mavenCentral()了吗? -
不,因为他们说你必须只在 gradle 模块应用程序中实现这一行
-
是的,我已经检查了 build gradle 在存储库和所有项目中都有 mavenCentral()
-
好的,我已经尝试过使用其他 github 依赖项,但同样的问题正在发生不知道该怎么办我重新安装了 android studio,但问题仍然存在
标签: android dependency-injection dependencies