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

ivan.savytskyi

08/07/2020, 9:12 PM
Hey folks, does anyone sees the same issue after upgrading IDEA to the latest 2020.2. I have a Kotlin module that depends on native module. With latest update, IDEA started to complain
Unresolved  reference
for any class defined in
commonMain
folder. Project perfectly compiles via command line so this issue seems IDEA specific. Invalidating cache doesn't help.
when any android modules is removed from the project IDEA all issues go away
l

Liliia

08/10/2020, 11:54 AM
The YT issue you’ve mentioned relates to
buildSrc
specifically. If yours isn’t about it, could you please submit a separate one? I failed to reproduce it form scratch with IDEA 2020.2 Release (202.6397.94), Kotlin plugin 1.4.0-rc.
t

turansky

12/24/2020, 5:22 PM
I had similar problem with enabled Android plugin Problem was fixed for me in IDEA
2020.3.1-RC
Kotlin plugin
203-1.4.21-release-IJ5981.133
@ivan.savytskyi Do you use this option?
Copy code
kotlin.mpp.enableGranularSourceSetsMetadata=true
i

ivan.savytskyi

12/24/2020, 5:36 PM
Thx I will double check
t

turansky

12/24/2020, 5:39 PM
You can install the second IDEA from Toolbox just for check
m

mbonnin

12/28/2020, 3:36 PM
No luck from me. As a "bonus", IDEA also chokes on
build.gradle.kts
now /
Copy code
Cannot access class 'java.lang.Class'. Check your module classpath for missing or conflicting dependencies
Ok, that last part is fixed by reverting to JDK 8 (instead of 11). I still filed a bug there: https://youtrack.jetbrains.com/issue/KT-44119. The "access commonMain from a JVM project" thing still doesn't work unless I remove all Android from the project