unstable version of the Kotlin compiler
mcorbridge opened this issue · 1 comments
mcorbridge commented
Class 'androidx.compose.foundation.layout.Arrangement' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler
Make sure this is included in build.gradle
android {
// other options
kotlinOptions {
jvmTarget = '1.8'
useIR = true // <- THIS!
}
// more options
}
vinaygaba commented
This won't be needed in the 1.5 version of Kotlin that I'm about to use as I finish the upgrade of this project. Currently WIP but you can track it here - https://github.com/vinaygaba/Learn-Jetpack-Compose-By-Example/compare/vinay-latest-compose?expand=1