Abhimanyu
05/26/2024, 5:50 PMAbhimanyu
05/26/2024, 5:52 PMandroidx.compose.compiler:compiler
or androidx.compose.compiler:compiler-hosted
.
How to proceed with this step?Abhimanyu
05/26/2024, 5:52 PMcomposeOptions {
kotlinCompilerExtensionVersion = "1.5.12" // jetpackComposeCompilerVersion
}
shikasd
05/26/2024, 6:52 PMAbhimanyu
05/27/2024, 8:51 AMlibs.version.toml
,
Updated
Libraries
com.google.devtools.ksp:symbol-processing-api => "2.0.0-1.0.21"
Plugins
org.jetbrains.kotlin.android => "2.0.0"
org.jetbrains.kotlin.jvm => "2.0.0"
org.jetbrains.kotlin.plugin.serialization => "2.0.0"
com.google.devtools.ksp => "2.0.0-1.0.21"
Error
This version (1.5.12) of the Compose Compiler requires Kotlin version 1.9.23 but you appear to be using Kotlin version 2.0.0 which is not known to be compatible.
Compose compiler defined like this in all feature modules using compose.
android {
composeOptions {
kotlinCompilerExtensionVersion = "1.5.12" // jetpackComposeCompilerVersion
}
}
This page https://developer.android.com/jetpack/androidx/releases/compose-kotlin suggested https://developer.android.com/develop/ui/compose/compiler for K2.
2. Added "org.jetbrains.kotlin.plugin.compose"
plugin with same version as org.jetbrains.kotlin.android
.
3. Added compose compiler plugin to app and other features modules using Compose.
4. Removed the kotlinCompilerExtensionVersion
as suggested in the above message.shikasd
05/27/2024, 12:19 PM