티스토리 뷰
TaskExecutionException: Execution failed for task ':app:checkDebugAarMetadata'.
네.... 빌드 도중에 오류났습니다.
코드 문제는 아니었고 약간의 설정에 문제가 있었던 모양이에요.....
일단 버그 내용은 아래와 같아요.
참고하고 싶으신 분들은 보세요. (더보기 참고)
Caused by: java.lang.RuntimeException: 6 issues were found when checking AAR metadata:
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:checkDebugAarMetadata'.
Caused by: java.lang.RuntimeException: 6 issues were found when checking AAR metadata:
1. Dependency 'androidx.appcompat:appcompat-resources: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).
2. Dependency 'androidx.appcompat:appcompat: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).
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).
해결법
- 결론부터 이야기하면 우린 이 아래 있는 문장만 잘 읽으면 됩니다.
Recommended action: Update this project to use a newer compileSdkVersion
of at least 33, for example 33.
- 버전이 안맞아서 안 돌아갔으니 버전을 올리라고 하네요.
1. 우리의 착한 친구 build.gradle (:app)으로 들어가줍니다.
2. 1번 사진에 표시된 부분을 아래처럼 버전을 올려주세요. (32->33)
- targetSdk 는 수정하셔도 되고 안하셔도 됩니다.
이제 다시 빌드하면 정상적으로 작동하는 걸 볼 수 있습니다.
아마 최근에 sdk 가 새로 나왔던 것 때문에
발생한 오류인 것 같네요.
저랑 같은 버그가 뜨신 분들이 있을지 모르니 올려봅니다.
오늘도 파이팅입니다~
'Android 연습 > 기타' 카테고리의 다른 글
Android Studio Your build is currently configured to use 에러 (0) | 2023.02.23 |
---|---|
Android Realm 설치중 DexPathList 에러 (0) | 2023.02.17 |
AndroidStudio 가상머신(Emulator) 화면 캡쳐/녹화하기 (0) | 2022.12.21 |
Android Studio Apk 만들고 사용해보기 (0) | 2022.12.21 |
AndroidStudio Git 연결해보기 (clone) (0) | 2022.12.14 |