Having problems upgrading to compose alpah08. Proj...
# compose
z
Having problems upgrading to compose alpah08. Project wont compile now with error:
e: java.lang.NoSuchMethodError: e: java.lang.NoSuchMethodError:
'org.jetbrains.kotlin.descriptors.DescriptorVisibility org.jetbrains.kotlin.descriptors.ClassConstructorDescriptor.getVisibility()'
compose versons: compose_version = ‘1.0.0-alpha08’ nav_compose_version =‘1.0.0-alpha02’ paging_compose_version = ‘1.0.0-alpha02’ kotlin version = ‘1.4.20’ Tried invalidating caches, restart, restart AS, restart Whole machine.
j
fwiw I'm using
1.0.0-alpha03
of nav_compose here with compose
alpha08
z
tried upgrading the nav version, still same error
j
That almost certainly means you are somehow still pulling in an older version of the Kotlin compiler. Unfortunately, gradle makes it super hard to understand your dependencies and there are a variety of reasons old versions could get pulled in, so there isn't an easy catch-all answer here. Maybe try checking your
kotlinCompilerVersion
.
v
In my case, upgrading
nav_compose_version
to
1.0.0-alpha03
had fixed the problem when I upgraded to alpha08. Maybe try doing that with the latest version of the
paging_compose_version
as well. Are there any other compose dependencies you are using?
Seems like someone else as well fixed this issue by upgrading navigation_compose - https://kotlinlang.slack.com/archives/CJLTWPH7S/p1607784238184900?thread_ts=1607782167.184000&cid=CJLTWPH7S
z
Thanks everyone for the help, the answer was both paging version which should be upgraded to alpha03, and also kotlinCompilerVersion which was pulling the wrong kotlin version. 🙏🙏
🙌🏼 1