Anyone has noticed that if you control click in a ...
# multiplatform
j
Anyone has noticed that if you control click in a function JVM library which is an
expect
inside of a KMP library with Android and JVM, it redirects to the Android
actual
instead of the JVM
actual
?
👌 1
m
i think it is still a bug if you have JVM and Android together
j
are you getting it in android studio or intellij too?
m
I use Android Studio only, not sure about intellij
s
yes, nothing really changed, jvm+android is kinda messy
I managed to create enough “hacks” to actually be able to work on jvm module that has a multiplatform dependency applied, but I’m not able to get rid of false positives in IDE after all this time
➕ 1
j
I have that fail or even the IDE unresolving things
I will move it from jvm to kmp
s
my jvm module sees (in IDE) only classes from androidMain, I point Android Studio to commonMain classes by using androidMain <-> commonMain typealiases. this way I have unresolved dependency error only in imports, not through the whole file 😄 does your jvm module see any commonMain classes in IDE?
j
No, but moving the jvm to kmp with only jvm is enough to fix it
👍 1
hope they fix it some day
but not sure if it is fixed in IDEA, the problem is IDEA doesn’t support agp 7 and it is not supporting the latest version quickly, so it is inviable to use for Android development
s
I also don’t think you can gradle sync mpp project if you have jetpack compose onboard. Doesn’t work for me at least
j
What you mean? the android app doesn’t need to be mpp, only the jvm app and libraries
s
I meant you can’t pass initial project sync if you use compose in any of your modules, while trying to open the project in IDEA
j
I think I haven’t had that problem
👀 1