hello, i'm a little bit late in upgrading to the l...
# compose
j
hello, i'm a little bit late in upgrading to the latest android study canary, and now the ide is that there's unresolved references with functions in kotlin's standard library like absoluteValue(), roundToInt(), listOf() and so on. It doesn't seem to be affecting the compose project, but I was wondering if anybody has already resolved the issue already.
Specifically, the IDE says
Copy code
unresolved reference
for listOf() and suggests that I should import
Copy code
import com.google.android.gms.common.util.CollectionUtils.listOf
and errors for roundToInt() and absoluteValue() are shown below
at the moment, my kotlin version is 1.4.32, and I am using beta06 for compose
d
I had the same problem. Just go through your dependencies and update them to the latest version, this fixed the problem for me. Our problem was that we importing
accompanist-flowlayout
which presumably has some version problems with the compose version we was using.
c
Clean build, invalidade caches and restart. Just to be sure 🙂
j
I think I've updated most if not all my dependencies, including the ones unrelated to compose just to be on the safe side. So far, the issue still persists
I also made an empty compose project (default settings, no dependencies), and the issue also persists there. This empty project uses 1.4.32 for the kotlin compiler version and beta01 for compose. Does this mean my issue lie elsewhere?
c
$Implode
Honestly there is a limite of effort I put in fixing android setup
I try to keep all my system stuff in a file so I know which java is being used
check inside of your android
go in your AS terminal
see which gradle and kotlin version shows up there
if nothing else works
delete everything
instal again
it’s gonna take you less than 1h
j
I think I solved the issue. I previously believed that canary 15 didn't support kotlin 1.5.0, but after updating my gradle files to 1.5.0, it fixed itself. Go figure :D
the downside being that beta06 doesn't work with 1.5.0 so this is really weird but o well i guess. For the time being, I suppose i'll revert back to canary 14 and see how that goes
c
Nice