Thread
#compose
    nlindberg

    nlindberg

    1 year ago
    Anyone tried getting the following error when using ScrollableColumn composable: (version: ‘1.0.0-alpha04’)
    java.lang.IllegalStateException: Reading a state that was created after the snapshot was taken or in a snapshot that has not yet been applied
    Rudolf Tammekivi

    Rudolf Tammekivi

    1 year ago
    Also some other composables are affected. It is reported and should be solved in alpha05
    nlindberg

    nlindberg

    1 year ago
    Aight thx, ill try to switch back to alpha03 for now then.
    caelum19

    caelum19

    1 year ago
    Trying to as well, can't resolve compiler alpha 03 anymore 😕
    nlindberg

    nlindberg

    1 year ago
    Try add in your project gradle. It says in the crane sample project “// Crane uses Compose alpha03 and Android Gradle Plugin 4.2.0-alpha13 which are incompatible”
    configurations.configureEach {
        resolutionStrategy.eachDependency { DependencyResolveDetails details ->
            def group = details.requested.group
            def module = details.requested.module.name
            def version = details.requested.version
    
            if (group == 'androidx.compose.compiler' && module == 'compiler') {
                details.useTarget("androidx.compose:compose-compiler:$version")
            }
        }
    }
    caelum19

    caelum19

    1 year ago
    Ah that works thanks!