korlibs-archive / korio

Korio: Kotlin cORoutines I/O : Virtual File System + Async/Sync Streams + Async TCP Client/Server + WebSockets for Multiplatform Kotlin 1.3

Home Page:https://korlibs.soywiz.com/korio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import korio from commonMain (kotlin multiplatform).

Kesanov opened this issue · comments

commented

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?

commented

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?

commented

I got around this by creating project with korge plugin from scratch.

I am getting the same problem :(

Screen Shot 2022-01-20 at 11 44 00 AM

@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/