Using -
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-
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.
• Add remove compose and build as
@Marko Novakovic suggested.
• switched to stable compose
1.0.4