Mofe Ejegi
08/05/2025, 4:33 PMandroidMain
or commonMain
.
I suspect it has something to do with the single variant approach the Android KMP library plugin uses.
I reverted to the plain androidLibrary plugin and they're back.
The Render error is:
The following classes could not be instantiated:
- androidx.compose.ui.tooling.ComposeViewAdapter
Has anyone else experienced this?Mofe Ejegi
08/05/2025, 4:49 PMrelease
variant. I get a similar render error when this happens. (Since I normally use debugImplementation
)Taush Sampley
08/05/2025, 5:02 PMTaush Sampley
08/05/2025, 5:03 PMMofe Ejegi
08/05/2025, 5:21 PMdebugImplementation
or releaseImplementation
functions. It shows an error if you attempt to write those.
And I'm using a plain implementation
to apply the uiTooling artifact to the androidMain target. It seems like in the process of migrating to a Single variant, preview tooling support got left behind.Mofe Ejegi
08/05/2025, 5:22 PMandroidx.compose.ui:ui-tooling
for the androidMain
source set should.Mofe Ejegi
08/05/2025, 5:50 PMMadalin Valceleanu
08/13/2025, 9:37 AM