Seeing this compiler `BackendException` on AS whe...
# multiplatform
j
Seeing this compiler
BackendException
on AS when building a multi module KMM project which uses Jetpack compose
Copy code
org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
and this as render problems when preview tries to load in between
Copy code
java.lang.NoSuchMethodError: 'void androidx.compose.material.TextKt.Text...'
Found a few other people who had the same issue here, on the issuetracker and even on SOF but none of the solutions that worked for them, worked for me unfortunately. More details in the 🧵 .
Using -
Copy code
Android Studio Bumblebee | 2021.1.1 Beta 1
gradle plugin - 7.1.0-beta01 | wrapper - 7.2
kotlin - 1.5.31
compose - 1.1.0-alpha06
Project structure-
Copy code
Proj
----buildSrc
----kmmApp
----------androidApp // includes compose
----------iosApp
----------shared
-------------androidMain
-------------iosMain
-------------commonMain
----kmmLib1
----------androidMain // includes compose
----------iosMain
----------commonMain
----kmmLib2
----------androidMain
----------iosMain
----------commonMain
----settings.gradle.kts // include(":kmmApp:shared", ":kmmApp:androidApp", "kmmLib1", "kmmLib2")
So far I’ve tried - • Since I was using
buildSrc
, added the fix suggested here • added this to all modules
Copy code
buildFeatures.compose = true
composeOptions.kotlinCompilerExtensionVersion = "1.1.0-alpha06"
• Multiple rounds of clean, rebuild and Invalidate caches, even a system reboot to see if I’d get lucky.
r
I think there’s a decent chance this is just a compose issue and not a kmp thing. Maybe ask in #compose.
j
Will do. Thanks @russhwolf. 🙂