https://kotlinlang.org logo
Title
k

kevindmoore

08/14/2021, 7:46 PM
Has anyone seen this error? (I am not using Android Compose):
You are using an outdated version of Compose Runtime that is not compatible with the version of the Compose Compiler plugin you have installed. The compose compiler plugin you are using (version 1.1.0-alpha01) expects a minimum runtime version of 1.1.0-alpha01
1
I’ve tried using desktop compose plugin versions: 1.0.0-alpha3 and 0.5.0-build262
Using Kotlin 1.5.21
d

Dominaezzz

08/14/2021, 8:34 PM
I saw it but don't remember how I fixed it.
Try adding
google()
to your repositories.
And use alpha3
k

kevindmoore

08/14/2021, 9:23 PM
I’ve tried alpha3 as well (already have google())
I see a lot of sample projects using android gradle 4.x.x but I am using 7.x
Using Java 11
i

Igor Demin

08/14/2021, 11:14 PM
Some of your modules, or individual target (android/desktop) doesn't depend on "org.jetbrains.compose:compos e-runtime:1.0.0-alpha3", and probably some library transitively depends on the old version of Jetpack(Android) Compose. If you apply
org.jetbrains.compose
plugin to module, you should also add
dependencies {
    implementation(compose.runtime) //compose.runtime is equals to org.jetbrains.compose:compose-runtime:1.0.0-alpha3
}
see example
k

kevindmoore

08/15/2021, 12:22 AM
Oh wow. I just removed the plugin from one project and now it runs