Vas*_*val 3 dependencies android dependency-injection
我试图包含 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
Run Code Online (Sandbox Code Playgroud)
我不知道为什么会突然发生这种情况,我以前使用过 spinkit,但没有给我任何这样的错误,但现在当我尝试再次包含它时,会出现此错误
Rez*_*lam 14
使用Android Studio北极狐2020.3.1
不要在项目级别 gradle 文件中添加 maven { url "https://jitpack.io" } ,而是将其添加到settings.gradle
在settings.gradle
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
jcenter() // Warning: this repository is going to shut down soon
}
Run Code Online (Sandbox Code Playgroud)
这解决了我的问题,就像你一样。
归档时间: |
|
查看次数: |
4045 次 |
最近记录: |