Android Studio 依赖项“安卓系统.应用程序兼容:应用程序兼容资源:1.6.1”

f45qwnt8  于 2023-02-19  发布在  Android
关注(0)|答案(1)|浏览(248)

依赖项“androidx.appcompat:appcompat-resources:1.6.1”要求依赖于它的库和应用在Android API 33或更高版本上编译。

:app is currently compiled against android-32.

  Also, the maximum recommended compile SDK version for Android Gradle
  plugin 7.2.1 is 32.

  Recommended action: Update this project's version of the Android Gradle
  plugin to one that supports 33, then update this project to use
  compileSdkVerion of at least 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).

我该如何解决这个android工作室的问题?
我显然不知道我该怎么办

guz6ccqo

guz6ccqo1#

这是一个依赖关系版本对比问题,只需将appcompact和ktx替换为

implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.4.2'

相关问题