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

Vincent Williams

02/01/2021, 1:30 AM
When I add this to my project
Copy code
buildFeatures {
        compose = true
    }
I get the following error:
Copy code
com.intellij.openapi.externalSystem.model.ExternalSystemException: Could not create task ':app:compileDebugKotlin'.
org/jetbrains/kotlin/gradle/tasks/KotlinCompile
Any ideas why? Im trying to use compose alpha 10 on the latest canary AS and kotlin 1.4.21
building with --stacktrace or --scan adds no additional information
t

Timo Drick

02/01/2021, 1:45 AM
Did you added also following lines:
Copy code
composeOptions {
        kotlinCompilerVersion kotlinVersion
        kotlinCompilerExtensionVersion rootProject.ext.compose_version
    }
kotlinOptions {
        jvmTarget = "1.8"
        useIR = true
    }
v

Vincent Williams

02/01/2021, 1:51 AM
yes I did. those lines compile fine and I can use the compose functions in code, but without the buildFeatures block, it crashes at runtime
2 Views