Anyone else using compose multiplatform who upgrad...
# compose
a
Anyone else using compose multiplatform who upgraded from 1.5.0-beta02 to 1.5.0-rc01 now seeing this when building the android app?
> Task sharedcompileDebugKotlinAndroid FAILED
e: java.lang.ClassCastException: Cannot cast androidx.compose.compiler.plugins.kotlin.ComposePluginRegistrar to org.jetbrains.kotlin.compiler.plugin.CompilerPluginRegistrar
Our project was forked from the compose multiplatform template project, but it’s changed quite a bit since then, so I don’t have minimal repro steps. But the android side relies on some things from androidx/jetpack compose, which wasn’t a problem until now.
p
Working good my side. I have gradle 8.+ and agp 8.+ And kotlin 1.9
I noticed that same error if adding this in the android closure:
Copy code
buildFeatures {
        compose = true
    }
a
Well that's a major bummer 🙁. I have this to allow Android previews, the desktop previews are way too limited.
I had a feeling this would come back to bite me eventually
p
I agree, desktop previews feel kind of sluggish, more than Android. I am kinda used to it, for x or y reason, previews break from time to time. Even in the old view system. Not to say the previewer gets slow when the project grows, at the point where you want to trial/error on the device. Hopefully this department gets improved.
a
If desktop previews supported PreviewParameterProvider, I'd be okay with switching over
And custom preview annotations for different configurations (dark/light, screen size)
p
I see, yeah it is still very raw
a
I see you reported the issue already, great! 🙂 https://github.com/JetBrains/compose-multiplatform/issues/3531
p
Yeup forgot to update in the thread 🧵😁
🦜 1
113 Views