Stephcraft
10/06/2025, 8:47 PMwindows-x86_64 on Windows 11 ARM 64?!
Is there anyway I can 'override' a property to allow this?
build.gradle.kts
plugins {
kotlin("multiplatform") version "2.2.20" // "2.0.0"
}
repositories {
mavenCentral()
}
kotlin {
// windows
mingwX64("native") {
binaries {
executable {
entryPoint = "main"
}
}
}
sourceSets {
val nativeMain by getting
}
}
Error:
Execution failed for task ':commonizeNativeDistribution'.
> Could not isolate value org.jetbrains.kotlin.gradle.targets.native.toolchain.NativeVersionValueSource$Params_Decorated@26bb7cb5 of type NativeVersionValueSource.Params
> Could not resolve all files for configuration ':kotlinNativeBundleConfiguration'.
> Failed to transform kotlin-native-prebuilt-2.2.20-windows-aarch64.zip (org.jetbrains.kotlin:kotlin-native-prebuilt:2.2.20) to match attributes {artifactType=zip, kotlin.native.bundle.type=DIRECTORY, org.gradle.status=release}.
> Could not find kotlin-native-prebuilt-2.2.20-windows-aarch64.zip (org.jetbrains.kotlin:kotlin-native-prebuilt:2.2.20).
Searched in the following locations:
<https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-native-prebuilt/2.2.20/kotlin-native-prebuilt-2.2.20-windows-aarch64.zip>
Possible solution:
- Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
References:
• https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-native-prebuilt/2.2.20/
• https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-compatibility-and-versioning.html#supported-platforms
• https://youtrack.jetbrains.com/issue/KT-68504/Kotlin-Native-mingwArm64-target-support
• https://youtrack.jetbrains.com/issue/KT-48420/Kotlin-Native-Support-win-arm64-hostephemient
10/07/2025, 4:48 AMephemient
10/07/2025, 4:49 AMStephcraft
10/09/2025, 5:09 PM