https://kotlinlang.org logo
d

darkmoon_uk

06/24/2019, 11:24 AM
Really want to support a project with both an Android and Desktop Java source-set
h

h0tk3y

06/24/2019, 1:40 PM
Unfortunately, that's not supported at this point. We are investigating the possibilities to get rid of that conflict. For now, you can create a separate JVM-only subproject depending on the multiplatform module if that covers your use case.
c

coletz

06/25/2019, 7:35 AM
Uhm... Maybe I'm no understanding correctly your question but I have a working project which targets android, jvm backend and jvm desktop (with tornadofx). Using java 8 since javafx is not bundled anymore since java 9 and tornadofx needs it. Don't have any other issue at the moment. I can share the build.gradle when I'll be back home
h

h0tk3y

06/25/2019, 3:28 PM
@coletz In Kotlin 1.3.x Multiplatform projects, you can't add both an Android target and a JVM target with Java support in the same Gradle subproject. You can only have one of them (or an Android target and a JVM target without Java support). You are free to do so in different modules, though.