https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
l

Leandro Borges Ferreira

10/17/2023, 8:17 PM
Hello hello. I started to use `expected`/`actual` is a module of a personal and the desktop app build just fine, but when I try to build the android app I have a problem in an exception like:
Copy code
Expected class '[SomeClass]' has no actual declaration in module <[my_module]_debug>
The class is inside the
jvmMain
, but looks like the compiler is creating one module for each build type of android, which is kinda funny because the android app doesn't dependent on the jvm of this module. Is there a way to prevent this? Am I forgetting something?
z

zsmb

10/17/2023, 10:04 PM
Hey 👋 I don't believe the Android sources depend on
jvmMain
by default, have you done any configuration to include
jvmMain
in your Android builds? Not sure if you can share your project by any chance.
l

Leandro Borges Ferreira

10/18/2023, 8:45 AM
Hello Márton. Yeah, I was configuring the buildTypes inside the
android{}
of the gradle file. After removing this, it worked fine =]. Thanks for the info!