개발린생

[안드로이드] 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. 오류 해결 본문

Android Develop/너와 나의 문제 ・⋆。✰

[안드로이드] 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. 오류 해결

김블루 2023. 1. 18. 13:50

오류 구문

Dependency '*' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs.

해결 방법

6가지 모두 이러한 구문으로 오류가 발생한다면 build.gradle/app 에서 compileSdk를 33으로 변경하시면 됩니다.

android {
    compileSdk 33
	...
}

 

아래 6가지 이슈 내용을 보면 해당 종속 항목은 컴파일 버전 33에 의존하고 있고

현재 앱은 32 버전으로 컴파일 되어있으며 컴파일 버전을 33 이상으로 적용하라고 권장하고 있습니다.


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
   > 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).

 

참고 사이트

https://stackoverflow.com/questions/75122196/android-studio-error-6-issues-were-found-when-checking-aar-metadata