Hi, I’m new to Kotlin and Android Studio, and I’m ...
# android
d
Hi, I’m new to Kotlin and Android Studio, and I’m having trouble getting AS to resolve references to libraries from code. This issue seems to be specific to KMM projects, whereas a regular Android Activity sees them right away.
⬆️ 1
The code compiles just fine, so I get the impression that AS is confused as to what’s actually referenced in the compilation process?
I can even see the dependencies in the External Libraries list, complete with all the references AS fails to find:
c
I see this all the time too. I have never filed a bug. If you have a minimal repro project... File a bug and I'll star?
d
I can try and do that. What do you use instead of Android Studio?
c
I use Android studio canary. It still compiles like you said. So it's fine. But the IDE experience is woeful
d
At that point the IDE is just a complicated way of running Gradle and hiding real error messages in a sea of false positives, though, right?
All the suggested solutions are voodoo, and none of them seem to work for me.
Here is a new issue if you’d like to star it: https://issuetracker.google.com/issues/199061128
c
Starred. thanks
g
Hi @Colton Idle does this problem still exist for you?
This weird thing happens on my colleagues machine, but works totally fine on mine (we've the same plugin, gradle version, studio version and everything)
c
Haven't worked on KMM stuff in a while, so I can't say really.
g
Oh okay. op - @Daniel Brauer ?