Android JetPack中缺少材料图标构成
实现“ androidx.compose.material:材料 - icons--扩展:$ copsose_version”
在我的build> build.graddle.graddle
文件中包含最新稳定的compose(1.1.1) )。
但是,我无法参考任何网络wifixbar图标(例如networkwifi1bar),如
我知道所有图标都包含在材料 - icons-exted
中。
这是我目的的问题,还是不包括这些问题?
implementation "androidx.compose.material:material-icons-extended:$compose_version"
is included on my build.graddle
file with the latest stable realease of Compose (1.1.1).
However, I am unable to reference any of the NetworkWifiXBar icons (e.g. NetworkWifi1Bar ) as seen here.
I had the understanding that all icons were included with material-icons-extended
.
Is this an issue on my end or are these not included?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以使用以下 组成材料依赖项 更新于2024年7月24日:
稳定版本:
实现”
1.6.8“ rel =“ noreferrer
” a href =“ https://developer.android.com/jetpack/androidx/releases/compose-material-1.7.0-beta06” rel =“ noreferrer”>
a - 扩展:1.7.0-Beta06“
You can use the below Compose Material dependencies updated on July-24, 2024:
Stable Release:
implementation "androidx.compose.material:material-icons-extended:1.6.8"
Alpha Release:
implementation "androidx.compose.material:material-icons-extended:1.7.0-beta06"
我不得不使用此工件(请注意,这是特定于Android的)
I had to use this artifact (notice this is Android Specific)
您需要包括依赖项实现
“ androidx.compose.material:材料 - icons--扩展:xxx”
,如果此后您仍然只找到此图标的空列表您只需要给索引图标的Android Studio提供更多时间 - 等一下dot或开始键入一些图标名称
You need to include dependency implementation
"androidx.compose.material:material-icons-extended:x.x.x"
and if after that you still find only this empty list of iconsyou just need give more time to Android Studio for indexing icons - wait more after place dot or start typing some icon name
问题是Android Studio仍在异型地加载图标
如果您在SDK/图标中cek,图标仍在推动INI进度,
如果我们打开“创建向量资产”窗口并且不要关闭它,我们将看到它
直到加载IND图标文件夹的图标完成
,请保留此窗口的打开,直到加载SDK/图标中的图标数据
The issue is the android studio still loading the icons asyncronously
if you cek in SDK/icons that icon still pushing ini progress
that we will saw if we open create vector asset window and don't close it
till the icons loading ind icons folder finished
so keep this window's opened until the icon data in SDK/icons are loaded