android 编译问题记录

最近在创建android 项目时遇到了一个报错,晕的一批,不知道怎么解决,但是又无意之间找到了解决方法。做一下记录, 按照提示, 升级一下 gradle 版本就好了。

vbnet 复制代码
3 issues were found when checking AAR metadata:

  1.  Dependency 'androidx.core:core-ktx:1.19.0' requires libraries and applications that
      depend on it to compile against version 37 or later of the
      Android APIs.

      :app is currently compiled against android-36.1.

      Recommended action: Update this project to use a newer compileSdk
      of 37.

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

      :app is currently compiled against android-36.1.

      Recommended action: Update this project to use a newer compileSdk
      of 37.

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

  3.  Dependency 'androidx.lifecycle:lifecycle-runtime-compose-android:2.11.0' requires libraries and applications that
      depend on it to compile against version 37 or later of the
      Android APIs.

      :app is currently compiled against android-36.1.

      Recommended action: Update this project to use a newer compileSdk
      of 37.

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

解决方法: 1.

  1. 安装 37.1 sdk
相关推荐
tianshi48518 小时前
Android 应用启动窗口(Splash Screen)的创建与销毁流程
android
脚踏实地,坚持不懈!9 小时前
ICU Calendar 实际工作问题排查手册
android
ii_best9 小时前
安卓脚本/ios开发软件按键精灵实战:自动定位弹窗广告关闭按钮坐标的通用方案
android·ios·自动化
天空之城--10 小时前
Android Jetpack Compose 状态管理浅析
android·android jetpack
企业数字化笔记13 小时前
固定资产财务账与实物账怎么对账?折旧快照、差异检测与SQL核对
android·数据库·sql
千里马-horse15 小时前
第 66 章:在 Android 上运行 Windows 游戏
android·aosp
云边有个稻草人19 小时前
飞牛 NAS 远程访问实战:星空组网连接 Mac 与安卓,从 Compose 部署到 5G 验证
android·5g·macos
聚美智数19 小时前
手机号归属地-手机号归属地查询-手机归属地-运营商归属地
android·智能手机
恋猫de小郭19 小时前
Shopify 从 React Native 回到 Swift/Kotlin,但是你以为有手就行??
android·前端·ios
菠萝加点糖20 小时前
Android ChipGroup 使用说明
android