[안드로이드/Android] The minCompileSdk (31) specified in a dependency's AAR~, 안드로이드 오류

SooYeon Yeon·2021년 12월 28일
0

안드로이드/Android

목록 보기
8/25

안드로이드 스튜디오 최신 버전의 문제인지, kotlin으로 새 프로젝트를 생성해 실행하면

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

이러한 오류가 뜹니다.

build.gradle에서

defaultConfig 안에

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

다음과 같이 코드를 작성하고 sync now를 클릭한 후 실행하면 됩니다.

참고한 내용 : https://stackoverflow.com/questions/69034879/how-to-resolve-this-error-the-mincompilesdk-31-specified-in-a-dependencys-aar

0개의 댓글