Hello! I am trying to use MutableStateFlow in comm...
# multiplatform
v
Hello! I am trying to use MutableStateFlow in commonCode, but for some reason it doesn't appear in the autocomplete. When I reference it by FQCN it compiles, but still doesn't allow me to go to the source, saying "Cannot find declaration to go". Another weird thing is that I see coroutines dependency 1.6.4 in my project tree (and for some reason jvm only) while I am on
1.10.1
. I am using latest android studio, but the same thing was on one of the previous versions. Edit: switching to idea helped resolving the issue. But now I can't launch my targets anymore 😞 Edit2: Reimporting project into AS helped with the correct version of coroutines dep in the project view, but didn't help with "Cannot find declaration to go"
s
Did you try "invalidate caches and restart"?
d
Yeah, it's not rare for indexes to get out of sync... Invalidate is probably a once-or-twice-daily go-to for me. Not great, not terrible.
v
Invalidate and restart didn't help then. But updating to a canary build resolved the issue. (it backfired a month later tho :D)