2023년 신상 호텔 리스트
최근에 오픈한 호텔을 찾는다면 살펴보세요

Android - Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that depend on it to compile against version 34...

조회수: 139
업데이트하지 않고 방치하던 앱을 최신으로 업데이트 하려고 하면 이런 에러가 뜰 때가 있다.



An issue was found when checking AAR metadata:

  1.  Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that
      depend on it to compile against version 34 or later of the
      Android APIs.

      :app is currently compiled against android-33.

      Also, the maximum recommended compile SDK version for Android Gradle
      plugin 7.2.2 is 33.

      Recommended action: Update this project's version of the Android Gradle
      plugin to one that supports 34, then update this project to use
      compileSdkVerion of at least 34.

      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).



build.gradle에서 implementation 'com.google.android.material:material:1.10.0'를 implementation 'com.google.android.material:material:1.8.0'으로 변경하면 작동할 것이다.