Hi all
I have an issue trying to add Compose to my project
When building project i get this error:
e: androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException: You are using an outdated version of Compose Runtime that is not compatible with the version of the Compose Compiler plugin you have installed. The compose compiler plugin you are using (version 0.1.0-dev16) expects a minimum runtime version of 0.1.0-dev16.
But i specify in build.gradle for 2 modules (feature module when i want to use compose and app module) latest version of compose:
android {
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerVersion '1.4.0'
kotlinCompilerExtensionVersion '1.0.0-alpha01'
}
kotlinOptions {
jvmTarget = jvmTargetVer
useIR = true
}
}
I use gradle plugin version 4.2.0-alpha08:
classpath 'com.android.tools.build:gradle:4.2.0-alpha08'
and gradle version 6.6:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-all.zip
and kotlin version 1.4.0:
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.0"
Could anyone help me please? What i'm doing wrong?