Execution failed for task ':app:checkDebugAarMetadata'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'

Viewed 1665

I am facing this problem, I try Multiple solutions but no luck My build.gradle file consist

 compileSdkVersion = 30
 targetSdkVersion = 30 

I also add following lines in build.gradle

 configurations.all {
        resolutionStrategy {
            force 'androidx.core:core-ktx:1.6.0'
        }
    }

also, try these https://exerror.com/solved-execution-failed-for-task-appcheckdebugaarmetadata/ also, install node_mudule much time also reset cache and Gradle clean but found no luck if anyone has any solution please update me

2 Answers

I was also faced with this problem,When I changed position of maven { url "https://jitpack.io"} from below to up and add maven { url "https://maven.google.com"} Then the problem disappear.

allprojects {
    repositories {
        mavenLocal()
        maven { url "https://jitpack.io" }
        maven {
            url "https://maven.google.com"
        }
        google()
        jcenter()

    }
}

uninstall the last package you added to your project npm uninstall <package-name> and then run again.

Related