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

material3 问题:requires libraries and applications that depend on it to compile against version 35

[versions] androidx-material3 = "1.4.0" [libraries] androidx-material3 = { group = "androidx.compose.material3", name = "material3", version.ref = "androidx-material3" }
  • 在 Android 开发中,使用 Jetpack Compose 时,使用 material3 时,出现如下错误信息
13 issues were found when checking AAR metadata: 1. Dependency 'androidx.compose.material3:material3-android:1.4.0' requires libraries and applications that depend on it to compile against version 35 or later of the Android APIs. :app is currently compiled against android-34. Recommended action: Update this project to use a newer compileSdk of at least 35, for example 35. 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). ... Update minCompileSdk in modules with dependencies that require a higher minCompileSdk.
问题原因
  • material31.4.0版本要求compileSdk 35或更高版本,而当前项目为compileSdk 34
处理策略
  • 这里选择降级 material3 的版本,将1.4.0降级为1.3.2
// 原来是这样的 [versions] androidx-material3 = "1.4.0" [libraries] androidx-material3 = { group = "androidx.compose.material3", name = "material3", version.ref = "androidx-material3" }
// 修改成这样 [versions] androidx-material3 = "1.3.2" [libraries] androidx-material3 = { group = "androidx.compose.material3", name = "material3", version.ref = "androidx-material3" }
http://www.jsqmd.com/news/344399/

相关文章:

  • 基于PHP、asp.net、java、Springboot、SSM、vue3的药店管理系统的设计与实现
  • 基于PHP、asp.net、java、Springboot、SSM、vue3的中小企业设备管理系统的设计与实现
  • 关于自己的学习笔记
  • wsl配置openclaw时链接飞书失败.openclaw/extensions/feishu/index.ts: Error: Cannot find module ‘zod‘
  • 新版搜索引擎的个人思路
  • Skills 使用步骤
  • 2026年尿毒症治疗趋势:灌流透析耗材选择建议 - 品牌2025
  • 剑指offer-73、连续⼦数组的最⼤和(⼆)
  • 答辩前一晚,最值得做的 5 件事
  • 【白血病检测】数字图像处理白血病检测【含GUI Matlab源码 15071期】含报告
  • 66 Spring线程池配置
  • 信息系统仿真:数据传输与网络仿真_(4).仿真工具与技术
  • 68 @Async异步注解深度实践
  • 【5G通信】5G NR-PRS赋能6G多基地ISAC:LoSNLoS混合场景定位【含Matlab源码 15067期】复现含文献
  • JVM 性能调优流程实战:从开发规范到生产应急排查
  • AI大模型应用开发工程师全解析:月薪60k+的桥梁职业指南
  • 信息系统仿真:数据传输与网络仿真_(5).数据编码与解码
  • 世界模型:大模型智能体的‘内部引擎‘,AI理解世界的核心
  • 【图像加密解密】融合超混沌系统和DNA编码彩色图像加密解密(含图像分析)【含Matlab源码 15046期】
  • 信息系统仿真:数据传输与网络仿真_(2).数据传输基础
  • 【图像压缩】小波变换图像编码技术图像压缩(含峰值信噪比和压缩比来确定编码器的性能)【含Matlab源码 15049期】
  • 基于Ai Coding,20天完成一个基于大模型的医学分析系统:Ai体征分析助手
  • 收藏这份大模型应用开发路线图:零基础也能成为AI应用开发者_大模型应用开发学习路线
  • 从0到1构建个人智能助手Agent:6步实战路线图,避开90%项目踩的坑
  • 基于python大数据的房价数据分析强大的系统
  • 慕尼黑工大高级深度学习机器视觉笔记-全-
  • Capacitor:跨平台Web原生应用开发利器,现已全面适配鸿蒙
  • PaperPass
  • 纽约大学地理深度学习笔记-全-
  • Python 字典演进史:从无序到有序的优雅蜕变与实战应用