I am trying to share Java code between android and desktop using Kotlin Multiplatform feature.
In short: I have Java code in module "library1" and Kotlin code accessing it from module ":library2".
When I am trying to build this sample project I am getting Unresolved reference
error:
> Task :library2:compileKotlinJvm FAILED
e: ../AccessJavaCodeExternally.kt: (3, 38): Unresolved reference: JavaCode
Most probably there is something in my Gradle configuration goes wrong, but I am stuck with understanding what exactly.
Any advice and suggestions will be greatly appreciated.
https://discuss.kotlinlang.org/t/problem-with-accessing-java-code-from-kotlin-code-externally/15597