Extraño error de AndroidStudio--checkDebugAarMetadata--se modificó la versión del SDK a 33 y se reparó con éxito

Se informa el error checkDebugAarMetadata cuando se utiliza Android Studio para crear un programa
:


6 issues were found when checking AAR metadata:

  1.  Dependency 'androidx.appcompat:appcompat-resources:1.6.1' requires libraries and applications that
      depend on it to compile against version 33 or later of the
      Android APIs.

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

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

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

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

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

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

在检查AAR元数据时发现6个问题:

1.  依赖项“androidx.appcompat:appcompat-resources:1.6.1”要求库和应用程序
的版本33或更高版本依赖它进行编译
Android api。

:app目前针对android-32进行编译。

建议操作:更新此项目以使用更新的compileSdkVersion
至少33个,例如33个。

请注意,更新库或应用程序的compileSdkVersion(其中
允许使用更新的api)可以与更新分开进行
targetSdkVersion(选择应用进入新的运行时行为)和
minSdkVersion(决定哪些设备可以安装应用程序)
上)。

2.  依赖项“androidx.appcompat:appcompat:1.6.1”要求库和应用程序
的版本33或更高版本依赖它进行编译
Android api。

:app目前针对android-32进行编译。

建议操作:更新此项目以使用更新的compileSdkVersion
至少33个,例如33个。

请注意,更新库或应用程序的compileSdkVersion(其中
允许使用更新的api)可以与更新分开进行
targetSdkVersion(选择应用进入新的运行时行为)和
minSdkVersion(决定哪些设备可以安装应用程序)
上)。

3.依赖项“androidx.activity:activity:1.6.0”要求库和应用程序
的版本33或更高版本依赖它进行编译
Android api。

:app目前针对android-32进行编译。

建议操作:更新此项目以使用更新的compileSdkVersion
至少33个,例如33个。

请注意,更新库或应用程序的compileSdkVersion(其中
允许使用更新的api)可以与更新分开进行
targetSdkVersion(选择应用进入新的运行时行为)和
minSdkVersion(决定哪些设备可以安装应用程序)
上)。

4.  依赖项“androidx.core:core-ktx:1.9.0”需要的库和应用程序
的版本33或更高版本依赖它进行编译
Android api。

:app目前针对android-32进行编译。

建议操作:更新此项目以使用更新的compileSdkVersion
至少33个,例如33个。

请注意,更新库或应用程序的compileSdkVersion(其中
允许使用更新的api)可以与更新分开进行
targetSdkVersion(选择应用进入新的运行时行为)和
minSdkVersion(决定哪些设备可以安装应用程序)
上)。

5.  依赖项“androidx.core:core:1.9.0”要求库和应用程序
的版本33或更高版本依赖它进行编译
Android api。

:app目前针对android-32进行编译。

建议操作:更新此项目以使用更新的compileSdkVersion
至少33个,例如33个。

请注意,更新库或应用程序的compileSdkVersion(其中
允许使用更新的api)可以与更新分开进行
targetSdkVersion(选择应用进入新的运行时行为)和
minSdkVersion(决定哪些设备可以安装应用程序)
上)。

6.  依赖项“androidx.annotation:annotation-experimental:1.3.0”要求库和应用程序
的版本33或更高版本依赖它进行编译
Android api。

:app目前针对android-32进行编译。

建议操作:更新此项目以使用更新的compileSdkVersion
至少33个,例如33个。

请注意,更新库或应用程序的compileSdkVersion(其中
允许使用更新的api)可以与更新分开进行
targetSdkVersion(选择应用进入新的运行时行为)和
minSdkVersion(决定哪些设备可以安装应用程序)
上)。

Haga clic en Archivo>Estructura del proyecto>módulos y cambie la versión de CompileSdk a 33 para que se ejecute
inserte la descripción de la imagen aquí
normalmente. Realmente no puedo entenderlo. Afortunadamente, tomó media hora. El error en Android Studio es demasiado metafísico.

Supongo que te gusta

Origin blog.csdn.net/OrientalGlass/article/details/130855616
Recomendado
Clasificación