Android Studio Errors | :app:checkDebugAarMetadata

Viewed 194

Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find android.cardview: cardview:1.0.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/android/cardview/ cardview/1.0.0/ cardview-1.0.0.pom - https://jcenter.bintray.com/android/cardview/ cardview/1.0.0/ cardview-1.0.0.pom Required by: project :app

Possible solution:

1 Answers

try adding the cardview dependency in your build.gradle(App Level)

Gradle Groovy DSL:

implementation 'androidx.cardview:cardview:1.0.0'

Gradle Kotlin DSL:

implementation("androidx.cardview:cardview:1.0.0")

Explanation for beginners from @JustInCoding: The library cardview is found within AndroidX, and not just Android.

Related