코딩하는 개굴이

[안드로이드] The minCompileSdk (31) specified in adependency's AAR metadata … 에러 핸들링 본문

안드로이드

[안드로이드] The minCompileSdk (31) specified in adependency's AAR metadata … 에러 핸들링

개굴이모자 2023. 2. 21. 21:38
반응형

coil 라이브러리를 써보겠다고 추가했더니 아래와 같은 에러가 떴다

 

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.core:core-ktx:1.7.0. AAR metadata file: /Users/son-yejin/.gradle/caches/transforms-3/95e9b203776701b2fdd49c7a6f83922b/transformed/jetified-core-ktx-1.7.0/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.1. AAR metadata file: /Users/son-yejin/.gradle/caches/transforms-3/2b79997c2e9e5a67097e73de6c8f4ba3/transformed/jetified-appcompat-resources-1.4.1/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.core:core:1.7.0. AAR metadata file: /Users/son-yejin/.gradle/caches/transforms-3/b5ca72ff9daf604b0672b27579975544/transformed/core-1.7.0/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.lifecycle:lifecycle-runtime:2.4.1. AAR metadata file: /Users/son-yejin/.gradle/caches/transforms-3/99f143bb2585ea57d833e7e00985cf42/transformed/lifecycle-runtime-2.4.1/META-INF/com/android/build/gradle/aar-metadata.properties.

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

따라서, compileSdkVersion 을 명시된 버전인 31로 올려주면 대부분 해결이 된다.

 

참고 링크


Uploaded by

N2T
반응형
Comments