核心内容摘要
智能家居中的语音交互:天气时钟背后的技术解析
[versions] androidx-material3
1.
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:
Dependency androidx.compose.material3:material3-android:
1.
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-
Recommended action: Update this project to use a newer compileSdk of at least 35, for example
Note that updating a library or applications 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.问题原因material
31.
0版本要求compileSdk 35或更高版本而当前项目为compileSdk 34处理策略这里选择降级 material3 的版本将
1.
0降级为
1.
2// 原来是这样的 [versions] androidx-material3
1.
0 [libraries] androidx-material3 { group androidx.compose.material3, name material3, version.ref androidx-material3 }// 修改成这样 [versions] androidx-material3
1.