The minCompileSdk (31) specified in a dependency’s AAR metadata is...

The minCompileSdk (31) specified in a dependency’s AAR metadata is...

728x90

반응형

SMALL

최근 sdk 버전 31까지 나와

이러한 오류가 뜬 것 같다.

The minCompileSdk (31) specified in a dependency’s AAR metadata is greater than this module’s compileSdkVersion

이 말인즉슨, 현재 사용되는 라이브러리 패키지들의 최소 sdk 버전이

728x90

이 앱의 compileSdkVersion 보다 크다고 한다.

그러면 우리는 compileSdkVersion을 31로 바꾸어 주면 된다.

android { compileSdkVersion 31 // <-- This defaultConfig { applicationId "com.example.app" targetSdkVersion 31 // <-- and this too // ... } }

동시에 targetSdkVersion도 바꾸어 준다.

이 방법이 통하지 않는다면,

다른 솔루션은 아래와 같다.

반응형

그 래들의 core 버전을 맞춰 주면 된다.

코틀린이면

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

자바면

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

이렇게 고쳐주면 된다.

SMALL

728x90

반응형

LIST

from http://daldalhanstory.tistory.com/278 by ccl(A) rewrite - 2021-11-26 01:27:53