Daniel Dello
06/03/2025, 6:36 PMcom.android.kotlin.multiplatform.library plugin. I've seen many old threads mentioning it doesn't support previews in AS, is that still the case? I'm trying to setup previews in my androidMain code (incrementally migrating existing android code) and have not been able to get it to run.
I'm facing the following error:
java.lang.ClassNotFoundException: androidx.customview.poolingcontainer.PoolingContainerListenerMadalin Valceleanu
06/04/2025, 10:30 AMMadalin Valceleanu
06/04/2025, 3:59 PMcommonMain
implementation("androidx.compose.ui:ui-tooling:1.8.2")
implementation("androidx.customview:customview-poolingcontainer:1.1.0")
implementation("androidx.emoji2:emoji2:1.4.0")
The poolingcontainer is something already documented the other two we need to further understand and try to improve it if possible https://developer.android.com/studio/known-issues#error_when_rendering_compose_previewDaniel Dello
06/04/2025, 4:03 PMandroid.library plugin (I've just finished configuring sonarqube, jacoco and all of our custom build logic to fully support it) and will migrate once it's fixed.
About adding the androidx.compose.ui:ui-tooling and androidx.customview:customview-poolingcontainer dependencies to the build, wouldn't that increase the final non debug apk with unecessary classes? Or could R8 remove it?Daniel Dello
06/04/2025, 4:48 PMandroidx.activity:activity-compose
androidx.lifecycle:lifecycle-viewmodel-savedstate
androidx.lifecycle:lifecycle-runtimeMadalin Valceleanu
06/04/2025, 6:20 PMandroid.library and then migrate despite not being ideal. The missing dependencies depends completely on your project at least for the shared one I just had to add those.
R8 isn’t yet supported so you will have to ensure those dependencies are removed before building the release artifact. However, there’s some ongoing work to make that available as part of optimization blockDaniel Dello
06/05/2025, 8:30 AMMadalin Valceleanu
06/05/2025, 9:45 AMAntoine Lamy
09/11/2025, 1:45 PMMadalin Valceleanu
09/25/2025, 1:34 PM