2 issues were found when checking AAR metadata:

Jonghyeon Sim·2024년 11월 7일
  1. Dependency 'androidx.core:core-ktx:1.15.0' requires libraries and applications that
    depend on it to compile against version 35 or later of the
    Android APIs.

    :app is currently compiled against android-34.

    Also, the maximum recommended compile SDK version for Android Gradle
    plugin 8.5.1 is 34.

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

    Note that updating a library or application's compileSdk (which
    allows newer APIs to be used) can be done separately from updating
    targetSdk (which opts the app in to new runtime behavior) and
    minSdk (which determines which devices the app can be installed
    on).

  2. Dependency 'androidx.core:core:1.15.0' requires libraries and applications that
    depend on it to compile against version 35 or later of the
    Android APIs.

    :app is currently compiled against android-34.

    Also, the maximum recommended compile SDK version for Android Gradle
    plugin 8.5.1 is 34.

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

    Note that updating a library or application's compileSdk (which
    allows newer APIs to be used) can be done separately from updating
    targetSdk (which opts the app in to new runtime behavior) and
    minSdk (which determines which devices the app can be installed
    on).

sol :

  • 첫 번째 문제를 compileSdk를 34에서 35으로 바꿔주면서 해결하니 emulator수행이 되면서 오류가 사라졌다.
  • 경고 메시지가 떠서 targetSdk도 34에서 35로 바꿔주었다.

0개의 댓글