While runs/builds working properly, Android studio started giving this error since a few hours. Btw I'm sure that i never add/modify any dependency on project.
Execution failed for task ':app:checkPrepReleaseAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.core:core-ktx:1.7.0-alpha02.
AAR metadata file: /Users/userxyz/.gradle/caches/transforms-2/files-2.1/cefbfad6ef180119f5f4851a3efddbb7/jetified-core-ktx-1.7.0-alpha02/META-INF/com/android/build/gradle/aar-metadata.properties.
What i’ve tried:
- Invalidate caches and restart
- Re-download project and add to studio again
Android studio version, Arctic fox 2020.3.1