I'm getting this error when I try to build my KMM ...
# koin
c
I'm getting this error when I try to build my KMM project
Copy code
Incompatible Kotlin/Native libraries
				There are 2 third-party libraries attached to the project that were compiled with an older Kotlin/Native compiler and cant be read in IDE:
				Gradle: org.koin:koin-core-metadata:darwinMain:3.0.0-alpha-4
				Gradle: org.koin:koin-core-metadata:nativeMain:3.0.0-alpha-4
				Please edit Gradle buildfile(s) and specify library a version compatible with Kotlin/Native 1.4.30-RC. Then re-import the project in IDE.
I'm using AS 4.1.2 and the Kotlin version
1.4.30-RC
, any way I can fix this?
a
Even 3.0.1-alpha is using 1.4.21. I believe it’s binary incompatibility from native side. Did you ask for #kotlin-native?
c
Not yet, I assumed since it's specifically singling out Koin it'll be best to ask here
j
Kotlin/native libraries in general I think still as @arnaud.giuliani mentioned have to be updated with each release (think it's on roadmap to address binary compatibility). BTW I think 1.4.30 was released yesterday
👍 1
@arnaud.giuliani it might be worth considering basing 3.0.1 on Kotlin 1.4.30.....I believe compose team are hoping to release version soon that will also be dependent on having that version
a
sure 👍
j
I guess we're still in that "messy" period for the 1.4.30 version (for kolin/native anyway) where a multitude of libraries need to be updated....be great when that's no longer needed!
https://github.com/JetBrains/kotlin/releases/tag/v1.4.30 ....hmm, though not sure there's been official mention of release yet from Jetbrains but I might have missed it
👍 1
Guess we need to see with 1.4.30 what situation will be....what prompted my question was report in another channel where someone got "Incompatible Kotlin/Native libraries" using 1.4.30-RC with library build with 1.4.21 I believe
a
it’s heavily breaking between updates 🤔
j
sorry, last my reply was supposed to be in thread in #kotlin-native where someone pointed out that 1.40.10/.20 were supposed to compatible....but was related to this 🙂
😄 1
@arnaud.giuliani is there a KMP version of Koin at the moment that works with Kotlin 1.4.30?
(btw also looks like
1.0.0-alpha12
of Compose is out today)
a
still another alpha 😄
no other update for now. I’m gathering info for maven central migration & also 2.2.2 breakings ... I will have to prepare a 2.2.3 fix.
but “just for lib update” I can publish something on 3.0.1
j
that'd be great, thanks