Hi,
I am iOS dev and new to Multiplatform.
I am trying to create Service layer (http requests, models and business logic) in common code which can be used between iOS and Android. I am using IntelliJ IDE.
To make http call I am using ktor(I have installed ktor plugin). Unfortunately, I am getting very basic errors and not able to proceed further. Any help would be great.
Error:
Unresolved reference: io
Gradle:
sourceSets {
commonMain {
dependencies {
implementation kotlin(‘stdlib-common’)
implementation “io.ktorktor client1.0.0”
implementation “org.jetbrains.kotlinxkotlinx coroutines core common1.0.1"
}
}
}