Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【DoKit生态场景】-库缺失 #1155

Open
jannonx opened this issue Dec 18, 2023 · 1 comment
Open

【DoKit生态场景】-库缺失 #1155

jannonx opened this issue Dec 18, 2023 · 1 comment
Assignees

Comments

@jannonx
Copy link

jannonx commented Dec 18, 2023

Cause 1: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.android.volley:volley:1.1.1.
Searched in the following locations:

==============================================================================

@wanlinruo
Copy link

wanlinruo commented Feb 28, 2024

处理方案:对于库(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的版本仲裁会取高版本,可以参考我的初始化代码如下:

pluginManagement {
    repositories {
        google()
        mavenCentral()
        maven { setUrl("https://jitpack.io") }
        gradlePluginPortal()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { setUrl("https://jitpack.io") }
    }
}
    // Dokit调试工具
    debugImplementation("io.github.didi.dokit:dokitx:3.7.1")
    releaseImplementation("io.github.didi.dokit:dokitx-no-op:3.7.1")
    debugImplementation("com.android.volley:volley:1.2.0")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants