Working with multiplatform project
# ktor
c
Working with multiplatform project
d
Whats the exact error you have?
c
I can't import ktor at all.
import io
<-- io is red
e
Hi, @coletz. Could you provide the
build.gradle
configuration? It looks like dependency import problem
c
Yup! I have a mpp project with android and ios, this is the build.gradle of the SharedCode module (basically the project structure is very very similar to this one https://github.com/touchlab/DroidconKotlin)
👀 1
build.gradle
On the External Libraries directory of the project there's nothing related to ktor client ios, these are all the ktor libs
Ok, so a gradle build of the build.gradle posted above gives these errors
finally found a similar issue: https://github.com/ktorio/ktor/issues/592
still can't get it working 😕 (can't set the target)
e
Fail to import project:
Copy code
Could not resolve com.squareup.sqldelight:sqldelightruntimeios:1.0.0-kn0.9.3-a1.
Could not resolve com.squareup.sqldelight:sqldelightmultiplatformdriverios:1.0.0-kn0.9.3-a1.
Could not resolve co.touchlab.knarch.threads:knarchLivedata:0.3.2-kn0.9.3-a1.
Could not resolve com.russhwolf:MultiplatformSettingsIos:0.1-kn0.9.3-a2.
Could not resolve org.jetbrains.kotlinx:atomicfu-native:0.11.7-kn0.9.3-a3.
It looks like you’re trying to use wrong versions:
0.11.7-kn0.9.3-a3
c
actually I'm not having this issue tbh, have you removed some maven repo?
e
Nope. I just clone, checkout mpp branch and import project
c
I used the master branch and it's working as is
e
What os version do you use?
c
Macos, mojave
I can try with Linux this evening if needed
🚫 1