Jishin Dev [JD]
10/16/2021, 11:56 AMBackendException
on AS when building a multi module KMM project which uses Jetpack compose
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
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 🧵 .Jishin Dev [JD]
10/16/2021, 11:56 AMAndroid 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-
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
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.russhwolf
10/16/2021, 2:19 PMJishin Dev [JD]
10/16/2021, 2:47 PM