Cause 1: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.android.volley:volley:1.1.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/volley/volley/1.1.1/volley-1.1.1.pom
- https://repo.maven.apache.org/maven2/com/android/volley/volley/1.1.1/volley-1.1.1.pom
Required by:
project :app > io.github.didi.dokit:dokitx:3.5.0.1
Cause 2: org.gradle.internal.resolve.ModuleVersionNotFoundException: 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 > io.github.didi.dokit:dokitx:3.5.0.1
==============================================================================
1条答案
按热度按时间piok6c0g1#
处理方案:对于库(com.github.ybq:Android-SpinKit:1.4.0)可以添加 maven { setUrl(" https://maven.google.com ") },对于库(com.android.volley:volley:1.1.1)的1.1.1版本只在jcenter发布,但jcenter已过期,所以此处解决方案,暂时可以提高com.android.volley:volley的版本到1.2.0或者1.2.1即可,gradle的版本仲裁会取高版本,可以参考我的初始化代码如下: