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

rockerhieu

12/21/2018, 10:43 AM
Hi, I'm trying out
kotlin-multiplatform
. I can import java dependencies and compile the project just fine. But Android Studio/Intellij failed to recognized the these dependencies. Is anyone running into the same issue?
n

nestserau

12/21/2018, 10:51 AM
Sometimes
r

rockerhieu

12/21/2018, 10:52 AM
How did you fix that?
j

janvladimirmostert

12/24/2018, 5:55 AM
does re-importing them work ?
r

rockerhieu

12/24/2018, 6:39 AM
Nope
n

nestserau

12/24/2018, 8:09 AM
I saw this with ktor 1.0.1. How I fixed that is I started using 1.0.0 which didn’t have this issue.
It has something to do with metadata or bugs in the IDE.
And I don’t use Android Studio for MPP, it’s definitely not capable of processing the structure of the project correctly.
r

rockerhieu

12/24/2018, 8:42 AM
I don't use ktor. I created a java module and reference it as a dependency in the SharedCode module. Intellij IDE doesn't recognize the java code in SharedCode but building from command line worked just fine.
4 Views