Diego
09/29/2020, 1:07 PM> Task :compileKotlinIosArm64 FAILED
w: skipping /Users/XXX/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-iosarm64/1.3.8/ab1f410af27e33b328b0e7b3b75875953822e9eb/kotlinx-coroutines-core.klib. The abi versions don't match. Expected '[17]', found '22'
w: The compiler versions don't match either. Expected '[]', found '1.3.71-release'
e: Could not find "/Users/XXX/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-iosarm64/1.3.8/ab1f410af27e33b328b0e7b3b75875953822e9eb/kotlinx-coroutines-core.klib" in [/Users/XXX/Documents/Development/kotlin-multiplatform-spike/common, /Users/XXX/.konan/klib, /Users/XXX/.konan/kotlin-native-macos-1.3.61/klib/common, /Users/XXX/.konan/kotlin-native-macos-1.3.61/klib/platform/ios_arm64].
Below my build.gradle file
import org.jetbrains.kotlin.gradle.tasks.*
plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.3.61'
}
repositories {
mavenCentral()
jcenter()
}
group 'com.kotlin.common'
version '0.0.1'
apply plugin: 'maven-publish'
kotlin {
jvm()
def iosFrameworkName = "KiplingCommon"
def iOSTargetConfig = {
binaries.framework {
baseName = "$iosFrameworkName"
}
}
iosX64("iosX64", iOSTargetConfig)
iosArm64("iosArm64", iOSTargetConfig)
sourceSets {
commonMain.dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.8"
}
commonTest.dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
jvmMain.dependencies {
implementation kotlin('stdlib-jdk8')
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.8"
}
jvmTest.dependencies {
implementation kotlin('test')
implementation kotlin('test-junit')
}
iosMain {
dependsOn(commonMain)
iosX64Main.dependsOn(it)
iosArm64Main.dependsOn(it)
dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-native:1.3.8"
}
}
iosTest {}
}
}
Any idea about why I receive that error and how to fix the problem. Thanks in advance!mbonnin
09/29/2020, 1:08 PMcoroutines:1.3.8
is compiled for 1.3.72
, which I would expect to be compatible with 1.3.61
but maybe it's notDiego
09/29/2020, 1:16 PMkotlinconf-app
. I'm able to build with no problems that app but no my sample appmbonnin
09/29/2020, 1:18 PM1.4.10
Diego
09/29/2020, 1:20 PM