마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

이게 무슨 오류일까요,,ㅠㅠ

0 추천
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.

      Recommended action: Update this project to use a newer compileSdk
      of at least 34, for example 34.

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

이것저것 다 따라해봤는데 계속 이 오류만 떠서 왜 뜨는 오류인지 잘 모르겠어요,,

이제 막 안드로이드 스튜디오를 깔고 실험? 코드를 넣고 실행했더니 자꾸 뜨네요ㅠㅠㅠㅠ
펩타이드 (120 포인트) 님이 2023년 10월 17일 질문

1개의 답변

0 추천
androidx.activity:activity:1.8.0가 Android 34 이상에서 동작을 하는데, 현재 님의 빌드 설정은 Android 33으로 되어 있으므로, Android 34로 올리시던가 androidx.activity:activity의 버전이 Android 33을 지원하는 버전으로 변경하셔야 할 것 같네요.

https://developer.android.com/jetpack/androidx/releases/activity

https://maven.google.com/web/index.html?q=androidx.activity#androidx.activity
spark (227,830 포인트) 님이 2023년 10월 18일 답변
...