인프런 커뮤니티 질문&답변

D.H.LEE님의 프로필 이미지

작성한 질문수

[왕초보편] 앱 8개를 만들면서 배우는 안드로이드 코틀린(Android Kotlin)

D-Day 앱 만들어보기

에러코드

23.02.20 14:02 작성

·

5.5K

0

Run 돌리면 자꾸 에러가 떠서 그냥 아무 코드 입력없이 새 프로젝트를 만들어 돌려도 다음과 같은 에러코드가 뜹니다. 원인이 무엇일까요??

 

6 issues were found when checking AAR metadata:

1. Dependency 'androidx.appcompat:appcompat-resources:1.6.1' requires libraries and applications that

depend on it to compile against version 33 or later of the

Android APIs.

:app is currently compiled against android-32.

Recommended action: Update this project to use a newer compileSdkVersion

of at least 33, for example 33.

Note that updating a library or application's compileSdkVersion (which

allows newer APIs to be used) can be done separately from updating

targetSdkVersion (which opts the app in to new runtime behavior) and

minSdkVersion (which determines which devices the app can be installed

on).

2. Dependency 'androidx.appcompat:appcompat:1.6.1' requires libraries and applications that

depend on it to compile against version 33 or later of the

Android APIs.

:app is currently compiled against android-32.

Recommended action: Update this project to use a newer compileSdkVersion

of at least 33, for example 33.

Note that updating a library or application's compileSdkVersion (which

allows newer APIs to be used) can be done separately from updating

targetSdkVersion (which opts the app in to new runtime behavior) and

minSdkVersion (which determines which devices the app can be installed

on).

3. Dependency 'androidx.activity:activity:1.6.0' requires libraries and applications that

depend on it to compile against version 33 or later of the

Android APIs.

:app is currently compiled against android-32.

Recommended action: Update this project to use a newer compileSdkVersion

of at least 33, for example 33.

Note that updating a library or application's compileSdkVersion (which

allows newer APIs to be used) can be done separately from updating

targetSdkVersion (which opts the app in to new runtime behavior) and

minSdkVersion (which determines which devices the app can be installed

on).

4. Dependency 'androidx.core:core:1.9.0' requires libraries and applications that

depend on it to compile against version 33 or later of the

Android APIs.

:app is currently compiled against android-32.

Recommended action: Update this project to use a newer compileSdkVersion

of at least 33, for example 33.

Note that updating a library or application's compileSdkVersion (which

allows newer APIs to be used) can be done separately from updating

targetSdkVersion (which opts the app in to new runtime behavior) and

minSdkVersion (which determines which devices the app can be installed

on).

5. Dependency 'androidx.core:core-ktx:1.9.0' requires libraries and applications that

depend on it to compile against version 33 or later of the

Android APIs.

:app is currently compiled against android-32.

Recommended action: Update this project to use a newer compileSdkVersion

of at least 33, for example 33.

Note that updating a library or application's compileSdkVersion (which

allows newer APIs to be used) can be done separately from updating

targetSdkVersion (which opts the app in to new runtime behavior) and

minSdkVersion (which determines which devices the app can be installed

on).

6. Dependency 'androidx.annotation:annotation-experimental:1.3.0' requires libraries and applications that

depend on it to compile against version 33 or later of the

Android APIs.

:app is currently compiled against android-32.

Recommended action: Update this project to use a newer compileSdkVersion

of at least 33, for example 33.

Note that updating a library or application's compileSdkVersion (which

allows newer APIs to be used) can be done separately from updating

targetSdkVersion (which opts the app in to new runtime behavior) and

minSdkVersion (which determines which devices the app can be installed

on).

답변 2

1

개복치개발자님의 프로필 이미지
개복치개발자
지식공유자

2023. 02. 20. 20:58

image

build.gradle 파일에

compileSdk -> 33

targetSdk -> 33

으로 변경해보시겠어요?

result님의 프로필 이미지

2023. 04. 15. 09:09

저도 동일한 현상이 나타났었는데

답변 주신대로 변경하니 잘 되네요.

감사합니다.

0

D.H.LEE님의 프로필 이미지
D.H.LEE
질문자

2023. 02. 22. 09:59

해결되었습니다! 갑자기 왜 Sdk가 바뀌었는지 궁금합니다! 무슨 문제인가요?>?

개복치개발자님의 프로필 이미지
개복치개발자
지식공유자

2023. 02. 23. 01:40

각 컴퓨터마다 환경이 다르기 때문에 이거는 뭐때문이라고 말씀드리기가 어렵네요!

저런 문제가 있으면 에러메세지를 보시고 변경해서 사용하시면 됩니다 :)

D.H.LEE님의 프로필 이미지

작성한 질문수

질문하기