Jason5lee
05/16/2022, 4:13 AM> 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?Anton Lakotka [JB]
05/16/2022, 6:51 AMAnton Lakotka [JB]
05/16/2022, 7:01 AMlinuxArm64
support in the coroutines library.
That is why Ktor-io also doesn't support linuxArm64.
https://github.com/Kotlin/kotlinx.coroutines/issues/855