Pavel Ratushnyi
08/31/2020, 6:48 AMe: 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?jim
08/31/2020, 7:43 AMdev16
and replace that with alpha01
. It seems likely you've got a lingering reference to dev16
in one of your gradle files.Pavel Ratushnyi
08/31/2020, 7:59 AMdev16
nowhere explicitly
maybe it is used somewhere implicitlyZhelyazko Atanasov
08/31/2020, 10:03 AMPavel Ratushnyi
08/31/2020, 10:13 AMppvi
08/31/2020, 12:55 PMZhelyazko Atanasov
08/31/2020, 2:06 PMtasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += ["-Xallow-jvm-ir-dependencies", "-Xskip-prerelease-check"]
// Opt-in to experimental compose APIs
freeCompilerArgs += '-Xopt-in=kotlin.RequiresOptIn'
}
}
Pavel Ratushnyi
09/01/2020, 6:54 AM