Hi, I am trying to add Compose Dependencies inside a
Kotlin Multiplatform Module
where all compose related code would be inside
androidMain
but although there are no code error, and the app gets successfully built, the application crashes when referencing a
Composable
defined inside the
KMM
Module.
Here is the Error:
Copy code
java.lang.NoSuchMethodError: No static method Sample(Landroidx/compose/runtime/Composer;I)V in class Lph/kmm/feature/compose/SampleKt; or its super classes (declaration of 'com.kmm.compose.SampleKt' appears in /data/app/com.kmm.compose-TrHVyznV0bVt58iksPYp3g==/base.apk!classes7.dex)
Archie
03/11/2021, 11:19 AM
Was wondering whether this is an expected behavior or whether there is a work around to make this work?