_/Velog

[AndroidStudio] One or more issues found when checking AAR metadata values 에러

선달 2023. 12. 23. 01:16
반응형

 

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/guest1/.gradle/caches/transforms-3/e7b644434c99ab8595e56305529915ef/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.core:core:1.7.0.
AAR metadata file: /Users/guest1/.gradle/caches/transforms-3/8fb9359d15ca0544addfd90daeb4c708/transformed/core-1.7.0/META-INF/com/android/build/gradle/aar-metadata.properties.

 


 

상당히.. 황당한 오류
아무것도 수정하지 않고 그냥 프로젝트 생성만했는데 빌드가 안되는,,

구글링 결과 간단하게 해결되었다

 

https://forums.expo.dev/t/android-build-error-mincompilesdk-30-in-a-dependency/56251

반응형

 

 

Android Build Error: minCompileSDK (30) in a dependency...

ExpoKit 42 getting this error on android build: The minCompileSdk (30) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-29). Dependency: androidx.w

forums.expo.dev

 

 

 

Gradle Scripts > build.gradle(Module: ~~.app)

android {
    compileSdk 30
    ...
}

 

여기있는 숫자를 하나 올려줬다
링크내부에는 29를 30으로 올리라했는데 나는 이미 30이라서 31로 바꿨다

 

Sync Now 까지 클릭하고 실행

 

그랬더니 잘 실행됨

정말 해결마저 황당하다

 

반응형