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

Evan

08/31/2020, 9:06 PM
Hey I have a KMP project that has android and iOS targets. I’m trying to implement an iOS specific ViewModel (i.e. an
actual
implementation for iOS) that launches operations on coroutine contexts, but IntelliJ CE isn’t importing dependencies correctly. The code compiles and runs fine, but the editor can’t find kotlinx or any darwin packages. Anyone else run into this issue?
e

Evan

08/31/2020, 9:29 PM
@Derek Ellis thank you, that gets me further! The
kotlinx
package is now visible, but the
platform
package is still missing (despite compiling and working).
i

Ivann Ruiz

08/31/2020, 9:33 PM
That happened to me earlier, try rebuilding (clean + build)
e

Evan

08/31/2020, 9:44 PM
Clean/build doesn’t seem to have done it, also tried invalidating caches and restarting. Still can’t see the platform package, but it will compile and run on a device 😕
4 Views