I have a project with following structure:
multiplatformmodule- contains a single kotlin class SomeMultiPlatformClassjvmmodule- a pure jvm module which depends onmultiplatformmodule
The problem is that within the jvmmodule I can't access any class from multiplatformmodule when running a test. I get java.lang.NoClassDefFoundError: com/example/multiplatform/multiplatformmodule/SomeMultiPlatformClass. IDE (Anroid Studio) also marks this class as unresolved. It builds, however, when the multplatformmodule classes are accessed from another multiplatform module.
Much more can be seen in the example project https://github.com/micHar/kmm-dependency-issues/tree/master.
