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
相关推荐
明雨-开发5 小时前
Android打包时候Execution failed for task ‘:launcher:lintVitalAnalyzeRelease‘.
android
游戏开发爱好者85 小时前
开心上架是什么,一站式 Apple 开发者工作台总览
android·小程序·https·uni-app·iphone·webview
Android-Flutter5 小时前
android kotlin launch 源码分析
android·kotlin
Android-Flutter6 小时前
android kotlin 状态机 Continuation 详解
android·kotlin
Zha0Zhun7 小时前
Jetpack Compose 实现 iOS 风格 3D WheelPicker
android
深念Y8 小时前
RIO-UL00(EMUI 4.1 / Android 6.0.1 / arm64)开机自启动 sshd
android·linux·华为·安卓·chroot·sshd·emui
爱和冰阔落8 小时前
【MySQL 慢查询排查实战】列表接口逐渐变慢时,怎样从请求链路定位原因
android·数据库·mysql
hunterandroid1 天前
Android WebView JSBridge 治理实战:从线上白屏崩溃到协议化通信
android·前端
一个用户名i1 天前
【Compose 系列】第 1 篇:认识 Compose,为什么要学它
android·android jetpack