https://kotlinlang.org logo
#compose
Title
# compose
z

Zsolt

06/17/2020, 10:51 AM
Hey! I’m trying to add Compose to an existing project, and I get this compilation error:
java.lang.IllegalStateException: new updateScope not found in result type of endRestartGroup
This happens as soon as I add the first @Composable annotated fun to the code (even if it’s completely empty). Any idea what I’m doing wrong?
In case anyone else runs into this: this was caused by mismatched compose version numbers in dependencies across gradle files
🎖️ 4
s

stewemetal

09/05/2020, 6:48 AM
Just ran into this... you deserve a medal. 😄
j

Javier

09/10/2020, 12:20 AM
I am having this issue but I am using the same dependency for all compose artifacts, but, for some reason, it is using in the compiler artifact the version alpha01 instead of alpha02. Maybe a transitive dependency?
I need to add the next snippet because
kotlin("android")
plugin is implementing alpha01
Copy code
android {
    composeOptions {
        kotlinCompilerVersion = versions.kotlin
        kotlinCompilerExtensionVersion = versions.compose
    }
}
👍 2
6 Views