Hello. We have a multiplatform library that all of...
# multiplatform
j
Hello. We have a multiplatform library that all of a sudden can’t find standard library classes, like kotlin.collections.ArrayDeque in the common source set. We are using org.jetbrains.kotlin.multiplatform:1.9.20 for the gradle plugin. Has anyone seen this before?
1
p
Hi! From my experience this has something to do with incompatible stdlib version being pulled into the project.
Check the dependencies `./gradlew :dependencies`` and see if you have multiple stdlib versions referenced.
👀 1
...
Long story short:
I had
mavenLocal()
in the gradle repositories before the others and this messed everything up for me as well.
...
sometimes it might also help to delete
~/.gradle
and
~/.m2
directories
j
its happening in CI and different dev machines so its a dependency thing probably
p
When it is happening on only a few but not all machines, that i might be that there are local artifacts interfering and being pulled into the build
-> check for
mavenLocal()
j
no mavenLocal.
p
is it happening for everyone?
j
yes
i’ll start with your dependencies check and get back to you. Thanks!
p
I also remember having this with 1.9.20 somehow. I think the fix back then was to upgrade to 1.9.25
j
i used the bom on the standard lib for 1.9.25 and that fixed it. going to go down to 1.9.20 and see if it fails again
yes 1.9.20 failed it
thanks!