Hey, i am trying to use a kotlin multiplatform lib...
# multiplatform
t
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
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
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.