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

안드로이드 스튜디오 컴파일러버전 오류 도와주세요ㅠㅠ

0 추천

run 시키면 이렇게 오류가나는데 어떻게 해결하나요? 

자세한 설명 부탁드리겠습니다ㅠㅠ

 

 

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.

      :part2_5 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.

      :part2_5 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.

      :part2_5 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-ktx:1.9.0' requires libraries and applications that
      depend on it to compile against version 33 or later of the
      Android APIs.

      :part2_5 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:1.9.0' requires libraries and applications that
      depend on it to compile against version 33 or later of the
      Android APIs.

      :part2_5 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.

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

songjae5426 (1,800 포인트) 님이 2023년 1월 14일 질문

1개의 답변

+1 추천
 
채택된 답변

app폴더에 있는 build.gradle에서 compileSdkVersion을 33으로 변경해 보세요. SDK버전과 사용하는 라이브러리간에 버전이 서로 맞지 않아 생기는 문제로 보입니다.

새 프로젝트를 만들어서 buidle.gradle이 어떻게 되어 있는지 비교해 보는 것도 문제 해결에 도움이 될 것 같습니다.

또는 github에서 샘플 안드로이드 프로젝트를 검색해서 build.gradle이 어떻게 구성되어 있는지 참고해 보세요.

spark (226,420 포인트) 님이 2023년 1월 14일 답변
songjae5426님이 2023년 1월 17일 채택됨
안그래도 build.gradle 에서 compileSdkVesion을 33으로 변경했는데 변경하면
액티비티 파일에서 우클릭했을때 run버튼이 없어지네요....
build.gradle 파일 변경 후에는 변경사항을 실제로 적용(라이브러리 다운로드 등)하기 위해서 우측 상단 툴바 밑에 나오는 sync now를 눌러주셔야 해요. 그리고 당연히 sdk 33은 다운로드가 되어 있어야 하구요.
...