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

Unable to resolve dependency during initial project setup #167

Open
arunm1407 opened this issue Oct 9, 2024 · 2 comments
Open

Unable to resolve dependency during initial project setup #167

arunm1407 opened this issue Oct 9, 2024 · 2 comments

Comments

@arunm1407
Copy link

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform volley-1.1.1.aar (com.android.volley:volley:1.1.1) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Could not find volley-1.1.1.aar (com.android.volley:volley:1.1.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/volley/volley/1.1.1/volley-1.1.1.aar

@javico-dev11
Copy link

Maybe some answer or news about this?

@dadaomeidiguozhuyi
Copy link

dadaomeidiguozhuyi commented Dec 9, 2024

我这边提供一下我的临时方案
这个volley的过期问题,我在data module里直接强制指定

dependencies {

    api ("com.android.volley:volley:1.2.1")

}

另外还有碰到kotlin的冲突问题
可以在app bulid.gradle.kts强制指定

 configurations.all {
        resolutionStrategy {
            force("org.jetbrains.kotlin:kotlin-stdlib:1.8.20")
            force("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20")
        }
    }

经过这两步我就正常运行了

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