当前位置: 首页 > news >正文

An issue was found when checking AAR metadata

一、报错信息

An issue was found when checking AAR metadata:1.  Dependency 'androidx.activity:activity:1.8.0' 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 Gradleplugin 7.4.2 is 33.Recommended action: Update this project's version of the Android Gradleplugin to one that supports 34, then update this project to usecompileSdkVerion of at least 34.Note that updating a library or application's compileSdkVersion (whichallows newer APIs to be used) can be done separately from updatingtargetSdkVersion (which opts the app in to new runtime behavior) andminSdkVersion (which determines which devices the app can be installedon).

二、错误分析(解决方案)

        Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that depend on it to 「compile against version 34 or later of the Android APIs」。

        从这段信息告诉我们,升级SDK这个是必须的,除非你不用。

2.1 升级SDK

        app/build.gradle中将 compileSdk 和 targetSdk 升至 34 即可。

2.2 降低版本

        Dependency androidx.activity:activity:1.8.0 必须34,那我不用就完事啦。

        首先找到androidx.activity:activity:1.8.0在哪?

        经过调研排查等最终确定是在「material」里面,操作如下:

dependencies {//将1.10.0改为1.8.0即可//implementation "com.google.android.material:material:1.10.0"implementation "com.google.android.material:material:1.8.0"
}

        具体采取哪种方案具体问题具体分析了,个人采用了「升级SDK」。

        毕竟项目不大牵扯不是很很大,而且新内容是肯定要兼容的,嘿嘿嘿。

http://www.lryc.cn/news/241093.html

相关文章:

  • 搭建线上jvm监控
  • 【计算机网络笔记】数据链路层概述
  • vscode-insiders Remote-SSH XHR failed无法访问远程服务器
  • Ubuntu开机显示No bootable devices found
  • 设计模式——行为型模式(二)
  • SpringBoot中企业微信的API调用
  • [前端] V8引擎编译原理
  • 使用Pytorch实现linear_regression
  • 网络安全等级保护收费标准?
  • 16 Go的反射
  • SQL Server 百万数据查询优化技巧三十则
  • list转map(根据某个或多个属性分组)
  • 常见树种(贵州省):012茶、花椒、八角、肉桂、杜仲、厚朴、枸杞、忍冬
  • 千云物流 - 使用k8s负载均衡openelb
  • C语言之字符串函数
  • python中一个文件(A.py)怎么调用另一个文件(B.py)中定义的类AA详解和示例
  • spark shuffle 剖析
  • C语言之认识柔性数组(flexible array)
  • 【MATLAB基础绘图第17棒】绘制玫瑰图
  • Qt 基于海康相机的视频绘图
  • FlinkCDC实现主数据与各业务系统数据的一致性(瀚高、TIDB)
  • JSP:Servlet
  • react中的state
  • VR全景航拍要注意什么,航拍图片如何处理
  • Spark---集群搭建
  • Linux上通过SSL/TLS和start tls连接到LDAP服务器
  • 【华为OD题库-034】字符串化繁为简-java
  • 斯坦福大学引入FlashFFTConv来优化机器学习中长序列的FFT卷积
  • 信息系统项目管理师-干系人管理论文提纲
  • Windmill:最快的自托管开源工作流引擎