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
相关推荐
Starry-sky(jing)12 小时前
Vidda ADB 开启:R Pro 65 找不到开发者选项的处理与连接验收
android·adb·远程控制·电视·vidda
雨白12 小时前
从原理到实践:使用 Kotlin KSP 仿写 ButterKnifeLite
android·kotlin
疯华整猫13 小时前
把二十七个 init 从首帧前面搬走:用 Trae 把启动优化钉进 CI
android·性能优化·ai编程
传奇开心果14 小时前
【探秘 Jetpack Compose 框架深水区】 第8课:rememberSaveable 的边界在哪里?——Bundle、Saver 与什么值得跨进程存活
android·kotlin
Frankie_stand15 小时前
测试自动化实战指南:从脚本化、自动判据到 CI 集成的完整落地路径
android·ci/cd·自动化
恋猫de小郭16 小时前
Flutter 大小核优化又被回滚,然后又开新提案?
android·前端·flutter
Kapaseker16 小时前
领导问我 Kotlin 的 Nothing 是什么?
android·kotlin
韩曙亮17 小时前
【错误记录】安卓 adb 调试 5037 端口占用排查 ( adb 的三层结构 | 找出本机占用 5037 的进程 )
android·数据库·adb·安卓·错误记录
三少爷的鞋18 小时前
不改变异步本质,只改变代码组织:Telegram 项目的 Kotlin 协程实践
android
好的佩奇1 天前
蓝牙之广播与扫描
android·flutter·蓝牙