https://kotlinlang.org logo
#compose
Title
# compose
z

ziv kesten

12/13/2020, 9:32 AM
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

John O'Reilly

12/13/2020, 10:35 AM
fwiw I'm using
1.0.0-alpha03
of nav_compose here with compose
alpha08
z

ziv kesten

12/13/2020, 10:58 AM
tried upgrading the nav version, still same error
j

jim

12/13/2020, 5:43 PM
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

Vinay Gaba

12/13/2020, 11:13 PM
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

ziv kesten

12/14/2020, 8:59 AM
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