Now I’m struggling with `NoClassDefFoundError` in ...
# multiplatform
m
Now I’m struggling with
NoClassDefFoundError
in jvm module. It doesn’t see the class from shared module 🤔
r
Does it build from command-line gradle? There’s a couple spots where the IDE gets confused when mixing Android and JVM.
d
@russhwolf is right; currently Gradle/MPP toolchain has trouble with mixing JVM and Android targets; particularly if you start throwing Android/JVM project module dependencies into the mix. If you are in this situation you need to use a build attribute to disambiguate the platform dependencies between the projects. Example here: https://git.chrishatton.org/chris/kotlin-multiplatform-template
m
Thank you, this is helpful!