news 2026/5/10 1:40:37

Android 开发 material3 问题:Dependency ‘androidx.compose.material3:material3-android:1.4.0‘...

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
Android 开发 material3 问题:Dependency ‘androidx.compose.material3:material3-android:1.4.0‘...
[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" }
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/5/9 7:42:41

5-FAM Maleimide,787632-00-2:高性能荧光标记试剂的核心解析

基本信息 英文名称:5-FAM Maleimide;5-FAM Mal;5-Carboxyfluorescein-MAL 中文名称:5-FAM马来酰亚胺;5-羧基荧光素-马来酰亚胺 CAS号:787632-00-2 分子式:C27H18N2O8 分子量:49…

作者头像 李华
网站建设 2026/5/5 22:06:09

68、Linux内核编译:从menuconfig配置到zImage生成全流程

Linux内核编译:从menuconfig配置到zImage生成全流程 一、核心概念先搞懂 1.1 关键术语解释 术语核心作用zImage压缩后的Linux内核镜像(Image原始镜像 解压程序),体积小、启动快,适用于嵌入式设备menuconfigLinux内…

作者头像 李华
网站建设 2026/5/9 12:41:23

ue 导出 fbx

目录 参数截图: 找到身体 Skeletal Mesh 导出fbx, 勾选参数: ✔ Level of DetailLOD 0 ✔ Collision❌ 关 ✔ Vertex Color✔ 开 ✔ Export Morph Targets✔ 开(脸部表情需要) ✔ Export Preview Mesh✔ ✔ For…

作者头像 李华