[Android] The minCompileSdk (31) specified in adependency's AAR metadata

강승구·2022년 12월 29일
0

원인

현재 사용되는 라이브러리 패키지들의 최소 sdk버전이 이 앱의 compileSdkVersion 보다 크기때문에 발생하는 에러이다.


해결법

module 수준 build.gradle 파일에서 compileSdkVersion과 targetSdkVersion를 31로 바꿔준뒤 sync해주면 해결

android {
    compileSdkVersion 31

    defaultConfig {
        applicationId "com.example.myapplication"
        minSdkVersion 16
        targetSdkVersion 31
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
profile
강승구

0개의 댓글