https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
l

Liang Song

03/22/2019, 9:34 PM
Hi, I have a mpp which uses kotlin 1.3.30-eap-45 and coroutine 1.1.1, I got these two warnings when run compileKotlinIos
The compiler versions don't match either. Expected '[1.2]', found '1.1.1-release-6082'
,
kotlinx-coroutines-core-native.klib. The abi versions don't match. Expected '[8]', found '5'
build failed after the two warnings
Could not find kotlinx-coroutines-core-native.klib
d

Dominaezzz

03/22/2019, 9:39 PM
What's the question? Does it not build?
Kotlin/Native versions are not (officially) binary backwards-compatible. That's why you get the warnings.
You'll need a version of coroutines that was built with the same version of kotlin to get rid of the warnings.
l

Liang Song

03/22/2019, 9:42 PM
No, build failed after the two warnings
Could not find kotlinx-coroutines-core-native.klib
d

Dominaezzz

03/22/2019, 9:43 PM
Have you enabled metadata?
l

Liang Song

03/22/2019, 9:44 PM
You mean enableFeaturePreview(‘GRADLE_METADATA’) in setttings.gradle
d

Dominaezzz

03/22/2019, 9:44 PM
Yes
l

Liang Song

03/22/2019, 9:44 PM
Yes, it is enabled
d

Dominaezzz

03/22/2019, 9:45 PM
What version of gradle are you using?
l

Liang Song

03/22/2019, 9:45 PM
5.1
l

Liang Song

03/22/2019, 9:49 PM
Got it, thanks.
3 Views