Colton Idle
12/02/2020, 7:56 PMandroidx.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 1.0.0-alpha08) expects a minimum runtime version of 1.0.0-alpha08.
Anyone else get this?kotlinOptions {
jvmTarget = '1.8'
useIR = true
}
buildFeatures {
compose true
viewBinding true
}
composeOptions {
kotlinCompilerVersion '1.4.20'
kotlinCompilerExtensionVersion '1.0.0-alpha08'
}
root level build.gradle was changed to this:
classpath 'com.android.tools.build:gradle:7.0.0-alpha01'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20"
and gradle was updated to 6.7.1
I've tried cleaning, building, etc. Any other debugging steps I can take here?jaqxues
12/02/2020, 9:56 PMimplementation
clauses?Colton Idle
12/03/2020, 3:11 AMimplementation
yet.
@jim or @Leland Richardson [G] any ideas?jim
12/03/2020, 3:30 AMalpha07
? In particular, what is your androidx.compose.runtime:runtime
dependency version?Colton Idle
12/03/2020, 5:45 AMkotlinOptions {
jvmTarget = '1.8'
useIR = true
}
buildFeatures {
compose true
viewBinding true
}
composeOptions {
kotlinCompilerVersion '1.4.20'
kotlinCompilerExtensionVersion '1.0.0-alpha08'
}
and that's enough to not allow me to compile.implementation "androidx.compose.runtime:runtime:1.0.0-alpha08"
and it worked.
Someone should really clarify in the "Add Jetpack Compose to an existing project" what is mandatory and what's not 😄
https://developer.android.com/jetpack/compose/setup#add-compose
It tells you have to configure kotlin, and gradle, but the toolkit dependencies seem optional. tooling previews, material, etc. No mention of androidx.compose.runtime:runtime:
jim
12/03/2020, 10:02 PM