【Andorid Studio】6 issues were found when checking AAR metadata

文章讲述了在新建程序时遇到的构建失败问题,原因是依赖的AAR元数据要求使用至少AndroidAPI34。解决方法是更新AndroidGradle插件至支持34及以上版本,并相应提升compileSDK和targetSDK。还提到了解决找不到build.gradle文件以及后续警告的步骤。

        新建一个程序,Build-Make Project后构建失败,点击报错详情如下:

6 issues were found when checking AAR metadata:

  1.  Dependency 'androidx.navigation:navigation-common:2.7.6' 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.

      Also, the maximum recommended compile SDK version for Android Gradle
      plugin 8.1.0 is 33.

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

  2.  Dependency 'androidx.navigation:navigation-runtime:2.7.6' 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.

      Also, the maximum recommended compile SDK version for Android Gradle
      plugin 8.1.0 is 33.

      Recommended action: Update this project's version of the Android Gradle
      plugin to one that

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值