API 30 빌드환경에서 empty app을 생성했을 때 다음과 같은 에러가 발생했다.
One or more issues found when checking AAR metadata values:
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.appcompat:appcompat:1.4.2.
AAR metadata file: C:\Users\User\.gradle\caches\transforms-3\d8bc8d99c60bb79ce67b1f4bb789f552\transformed\appcompat-1.4.2\META-INF\com\android\build\gradle\aar-metadata.properties.
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.appcompat:appcompat-resources:1.4.2.
AAR metadata file: C:\Users\User\.gradle\caches\transforms-3\210f8c9d18a7522058be5dc8fb5a423f\transformed\jetified-appcompat-resources-1.4.2\META-INF\com\android\build\gradle\aar-metadata.properties.
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.emoji2:emoji2-views-helper:1.0.0.
AAR metadata file: C:\Users\User\.gradle\caches\transforms-3\40129cdd0cc6fb43e1431d3a7f860d71\transformed\jetified-emoji2-views-helper-1.0.0\META-INF\com\android\build\gradle\aar-metadata.properties.
<수정방법>
implementation 'androidx.appcompat:appcompat:1.3.0'
android {
compileSdk 31
defaultConfig {
applicationId "com.lge.agoratest"
minSdk 26
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
build.gradle에 위 사항들을 추가해서 수정했다.
댓글