• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    미해결

에러코드

23.02.20 14:02 작성 조회수 5.16k

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

image

build.gradle 파일에

compileSdk -> 33

targetSdk -> 33

으로 변경해보시겠어요?

result님의 프로필

result

2023.04.15

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

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

감사합니다.

0

D.H.LEE님의 프로필

D.H.LEE

질문자

2023.02.22

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

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

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