Is there a sample Kotlin Native KLib project (not ...
# kotlin-native
n
Is there a sample Kotlin Native KLib project (not a Android/iOS one, preferably Linux) which uses the Kotlin Multiplatform plugin? Can generate a KLib for the library but cannot access the KLib dependency in the library itself.
IntelliJ shows errors on the KLib dependency even though the library compiles without any errors.
m
o
Do you use MPP plugin?
n
Yes. Presumably it is the plugin with the id
kotlin-multiplatform
and not
org.jetbrains.kotlin.multiplatform
.
m
Maybe you configured multiple native targets - IDEA currently supports only single. Or maybe just need to invalidate cashes and rebuild from inside IDEA.
n
Ah, just saw a Gradle popup on changes being detected. Refreshed Gradle and the errors have disappeared simple smile .