I got a lot of ```> Could not resolve all file...
# multiplatform
j
I got a lot of
Copy code
> Could not resolve all files for configuration ':linuxArm64CompileKlibraries'.
   > Could not resolve io.ktor:ktor-io:1.6.7.
     Required by:
         project :
      > No matching variant of io.ktor:ktor-io:1.6.7 was found. The consumer was configured to find a usage of 'kotlin-api' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'linux_arm64' but:
          - Variant 'commonMainMetadataElements' capability io.ktor:ktor-io:1.6.7 declares a usage of 'kotlin-api' of a library:
              - Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
              - Other compatible attributes:
                  - Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
                  - Doesn't say anything about org.jetbrains.kotlin.native.target (required 'linux_arm64')
when I tried to publish a multiplatform library. How should I fix it?
a
What is your build.gradle.kts configuration?
Oh, I got it. There is no
linuxArm64
support in the coroutines library. That is why Ktor-io also doesn't support linuxArm64. https://github.com/Kotlin/kotlinx.coroutines/issues/855