在使用 Accompanist 库时,需要在导入库时增加以下参数:exclude group: 'androidx.compose.ui', module: 'ui'
示例代码:
dependencies { // Accompanist 含有带有排除依赖的版本 implementation 'com.google.accompanist:accompanist-coil:' { exclude group: 'androidx.compose.ui', module: 'ui' }
// Compose 依赖需要单独引入 implementation 'androidx.compose.ui:ui:' implementation 'androidx.compose.material:material:' }
上一篇:AccompanistPager`offscreenLimit`removed.Howtodisablepreloadingofnearbypages?
下一篇:Accompanistwebview最初加载后变空白