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
相关推荐
9624561 小时前
从“一键创建 ECS”到完整恢复状态机:ACK 抢占式节点恢复 Android 工具升级复盘
android
LCD液晶屏4 小时前
京瓷液晶屏停产替代:杭州立煌科技工业 LCD 解决方案
android·科技
2501_932750265 小时前
Android 自定义 View 入门
android
事圆则缓8 小时前
Android 开启线程的几种方式:Thread、线程池、HandlerThread 与协程
android
半摆烂日常1 天前
低代码平台API对接实践:接口鉴权与数据同步的完整实现
android·低代码·rxjava
事圆则缓1 天前
volatile 使用场景全解析:它能保证什么,又解决不了什么
android
蒲公英内测分发1 天前
智能投影仪参加海外展会,未上架的 Android 配套 App 怎么让客户限时试用?
android
ii_best1 天前
按键精灵手机端开发安卓版实战:手写一个可最小化、可拖动的「运行日志悬浮窗」(附完整 源码 + 踩坑记录)
android·ios·智能手机·自动化·ai编程·按键精灵
终端安全笔记1 天前
安卓做 MDM 管控,先分清三种注册入口
android·安全·智能手机
乌萨达1 天前
手机模拟器安卓怎么用?电脑安装应用、玩手游与账号同步指南
android·智能手机·电脑·雷电模拟器