build.gradle: commonMainImplementation "io.ktor:...
# kotlin-native
j
build.gradle: commonMainImplementation "io.ktorktor client core$ktor_version" iosArm64MainImplementation "io.ktorktor client ios$ktor_version" iosX64MainImplementation "io.ktorktor client ios$ktor_version"
d
Have you enabled gradle metadata?
j
No. How do I enable gradle metadata?
d
enableFeaturePreview('GRADLE_METADATA')
in your settings.gradle file.
j
ould not resolve io.ktorktor client ios1.1.1. > Could not parse module metadata https://kotlin.bintray.com/ktor/io/ktor/ktor-client-ios/1.1.1/ktor-client-ios-1.1.1.module > Unsupported format version '0.3' specified in module metadata. This version of Gradle supports format version 0.4 only. > Could not resolve io.ktorktor client ios1.1.1. > Could not parse module metadata https://jcenter.bintray.com/io/ktor/ktor-client-ios/1.1.1/ktor-client-ios-1.1.1.module > Unsupported format version '0.3' specified in module metadata. This version of Gradle supports format version 0.4 only.
d
Ah, I see. What version of gradle are you using?
You'll need to be on 4.7 to depend on ktor.
j
4.10, I'll try 4.7
that appears to have been the issue. thx!