Zsolt

    Zsolt

    2 years ago
    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
    stewemetal

    stewemetal

    2 years ago
    Just ran into this... you deserve a medal. 😄
    Javier

    Javier

    2 years ago
    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
    android {
        composeOptions {
            kotlinCompilerVersion = versions.kotlin
            kotlinCompilerExtensionVersion = versions.compose
        }
    }