Import korio from commonMain (kotlin multiplatform).
Kesanov opened this issue · comments
I have korio
in common dependencies:
sourceSets {
commonMain {
dependencies {
implementation("com.soywiz.korlibs.korio:korio:2.2.0")
}
}
}
However, even though import com.soywiz.korio
works from src/nativeMain
. It doesn't work in src/commonMain
.
Which gradle and kotlin versions are you using?
Gradle 7.0
. Kotlin kotlin("multiplatform") version("1.5.20")
.
Uhm. That looks reasonable. Can you provide an screenshot with your problem, showing the project files tree and the code not working? Is that imports are not available? Red code? Or something else?
I got around this by creating project with korge plugin from scratch.
@unredundant can you try the latest version and see if that way it reproduces? Latest version is 2.4.10
https://repo.maven.apache.org/maven2/com/soywiz/korlibs/korio/korio/2.4.10/