You can look my issue with sharing Java code between android and desktop targets here: GitHub - dmitrykolesnikovich/accessJavaCode-issue: Problem with sharing Java code between Android and JVM targets
There is a workaround but I still need clean solution.