Thread
#compose
    Pierfrancesco Gulinelli

    Pierfrancesco Gulinelli

    2 years ago
    I'm adding compose to a big project with multiple modules (AS 4.1 canary ). I have
    buildFeatures {
        compose true
    }
    composeOptions {
        kotlinCompilerVersion "1.3.61-dev-withExperimentalGoogleExtensions-20200129"
        kotlinCompilerExtensionVersion "0.1.0-dev07"
    }
    on every module. But when i try to run the project, it appears
    Execution failed for task ':app:prepareDebugKotlinCompileTask'.
    > org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions.setUseIR(Z)V
    Adrian Blanco

    Adrian Blanco

    2 years ago
    If any module uses both kapt and compose, compiling will fail and complain about IR.
    Pierfrancesco Gulinelli

    Pierfrancesco Gulinelli

    2 years ago
    yes, but i knew it worked with kotlinCompilerVersion and kotlinCompilerExtensionVersion
    Adrian Blanco

    Adrian Blanco

    2 years ago
    Afaik from when I tried last, adding those two dependencies compiles but is not enough to use compose, adding
    compose true
    is required but will cause compilation to fail if it conflicts with kapt
    Pierfrancesco Gulinelli

    Pierfrancesco Gulinelli

    2 years ago
    ok, thank you. I hoped they had fixed it
    l

    Leland Richardson [G]

    2 years ago
    this should get fixed once we finish our rebase with kotlin upstream (though i’m not 100% sure), but that is taking a bit longer than we had planned.