I have mobile and wear modules in one project.
Both of them use generated Java classes at path ‘src/main/jni/library/src/gen/java’ for app module and ‘…/app/src/main/jni/library/src/gen/java’ for wear module. (Same folder…)
Kotlin doesn’t want to use this classes in app module while they are used in wear module.
I think this because Android Studio mark this folder only as wear sources root: