Colton Idle
01/18/2024, 11:08 AMColton Idle
01/18/2024, 11:25 AMcomposeOptions { kotlinCompilerExtensionVersion = composeCompilerVersion }
but now i get another error of compose compiler 1.3.2 which i dont have declared anywhere. I copied my toml straight from kmp.jetbrains.com so all of my versions should work just fine as the sample works fine.
e: This version (1.3.2) of the Compose Compiler requires Kotlin version 1.7.20 but you appear to be using Kotlin version 1.9.21 which is not known to be compatible. Please fix your configuration (or suppressKotlinVersionCompatibilityCheck
but don't say I didn't warn you!).Sunil Kumar
01/18/2024, 11:44 AMephemient
01/18/2024, 11:46 AMColton Idle
01/18/2024, 12:13 PMplugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("com.google.firebase.crashlytics")
id("com.google.gms.google-services")
id("com.google.firebase.firebase-perf")
}
I'm going to go ahead and add alias(libs.plugins.jetbrainsCompose)
then update composeCompilerVersion to also pull from the toml (the toml that was generated from kmp.jetbrains.com)ephemient
01/18/2024, 12:14 PMColton Idle
01/18/2024, 12:15 PMcomposeOptions { kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get() }
Colton Idle
01/18/2024, 12:16 PMColton Idle
01/18/2024, 12:16 PMColton Idle
01/18/2024, 12:18 PMbuildFeatures { compose = true }
if i use jetbrains compose?ephemient
01/18/2024, 12:20 PMColton Idle
01/18/2024, 12:20 PMColton Idle
01/18/2024, 12:21 PMColton Idle
01/18/2024, 12:21 PMephemient
01/18/2024, 12:21 PMconfigurations.all {
resolutionStrategy.dependencySubstitution {
substitute(module(libs.androidx.compose.compiler.get().toString()))
.using(module(libs.jetbrains.compose.compiler.get().toString()))
}
}
to make an Android project use the JetBrains compiler pluginColton Idle
01/18/2024, 12:21 PMephemient
01/18/2024, 12:21 PMephemient
01/18/2024, 12:22 PMColton Idle
01/18/2024, 12:23 PMColton Idle
01/18/2024, 12:23 PMephemient
01/18/2024, 12:24 PMColton Idle
01/18/2024, 12:24 PMcomposeOptions { kotlinCompilerExtensionVersion = ...
Colton Idle
01/18/2024, 12:25 PMephemient
01/18/2024, 12:27 PMephemient
01/18/2024, 12:28 PMColton Idle
01/18/2024, 12:29 PMColton Idle
01/18/2024, 12:29 PMColton Idle
01/18/2024, 12:35 PM