https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
t

timm

12/12/2018, 3:54 PM
Hey, i am trying to use a kotlin multiplatform lib in a java app. Neither
implementation project(':lib_project_multiplatform')
nor
compile project(':lib_project_multiplatform')
seem to work. Gradle does list me a bunch of variants it cannot choose between. What do i have to do to make this work?
h

h0tk3y

12/12/2018, 8:20 PM
Could you please post the detailed variants list here or in a YouTrack issue? This could actually arise for different reasons, so it depends on which variants there are, and may even be a bug in the plugin.
If it's Gradle 4.10.2 or 5.0 and you don't apply the Kotlin plugin in the Java app project, then it may be a known issue: https://youtrack.jetbrains.com/issue/KT-28795
t

timm

12/13/2018, 8:53 AM
Thanks, adding the kotlin plugin to the java project(s) depending on the multiplatform lib and enabling the metadata feature seem to have fixed it.