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

andylamax

06/23/2022, 10:09 AM
What version of IJ are y'all using for kotlin multiplatform?? Ever since I migrated to kotlin 1.7.0, all my gradle scripts are red, and the IDE fails to import some identifiers sometimes even from the stdlib. Building in terminal works just fine. Anyone with some insights?
m

mbonnin

06/23/2022, 10:23 AM
I'm using latest eap (2022.2) and tricking it into doing the Gradle sync with Kotlin 1.6.10
a

andylamax

06/23/2022, 10:24 AM
please, do tell how
m

mbonnin

06/23/2022, 10:24 AM
Haven't switched to 1.7 yet but 1.6.21 introduced a bunch of autocomplete issues for me, I guess related to HMPP
v

vanniktech

06/23/2022, 10:25 AM
2022.2 eap 5 with kotlin 1.7.0, and many gradle syncs Also whenever you build via Terminal all my multiplatform imports are gone: https://youtrack.jetbrains.com/issue/KTIJ-22089
a

Achifal

06/23/2022, 10:25 AM
I've seen this kind of problem before and deleting the
caches
folder worked for me as described in the second answer here
m

mbonnin

06/23/2022, 10:27 AM
This is most likely not configuration cache compatible (but I think it could be)
a

andylamax

06/23/2022, 10:42 AM
deleted all the cache folders, ~/.gradle/caches and ~/.cache/Jetbrains/Idea^. still reimporting the project. Fingers crossed
🤞 2
Finally solved it. Damn I honestly don't know what worked coz I tried almost everything I found on the web. My guess is if project JDK is oracle 18.0.1, changing it away from that and changing it back is what works for me
👍 1
👌 1
2 Views