Unable to resolve dependency during initial project setup
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
Maybe some answer or news about this?
我这边提供一下我的临时方案 这个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")
}
}
经过这两步我就正常运行了
Build issues has been fixed.