Hello hello. I started to use `expected`/`actual` ...
# multiplatform
l
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
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
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!