Open marcprux opened 4 months ago
Another, less inscrutable, indication of this problem may be the error:
e: This version (1.3.2) of the Compose Compiler requires Kotlin version 1.7.20 but you appear to be using Kotlin version 2.0.0 which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
When upgrading to Kotlin 2.0, inscrutable errors like "org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering" may occur in the build log. This appears to be the failure mode when the new built-in compose compiler is not used, or the old separate compose compiler is active.
To resolve this, add the new
libs.plugins.compose.compiler
plugin to the app'sAndroid/app/build.gradle.kts
fileAnd remove the old plugin from the file:
For reference, the errors will look like:
Another similar error: