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

tylerwilson

11/23/2020, 4:46 PM
I looked in the known issue tracker above, and did not immediately see this listed. I just tried to update to 1.4.20 and I get this compiler crash:
Copy code
e: java.lang.NoSuchMethodError: 'org.jetbrains.kotlin.descriptors.Visibility org.jetbrains.kotlin.descriptors.ClassDescriptor.getVisibility()'
	at androidx.compose.compiler.plugins.kotlin.lower.ClassStabilityFieldSerializationPlugin.afterClass(ClassStabilityFieldSerializationPlugin.kt:57)
	at org.jetbrains.kotlin.serialization.DescriptorSerializer.classProto(DescriptorSerializer.kt:156)
	at org.jetbrains.kotlin.incremental.JavaClassesTrackerImplKt.convertToProto(JavaClassesTrackerImpl.kt:88)
	...
anybody else see this? any known fix, or should i stay on 1.4.10 for now?
l

Leland Richardson [G]

11/23/2020, 4:51 PM
Hmm. That looks like a regression we haven’t seen before. How big of a project are you compiling? If we could get this down to a minimal repro that would be great
Although i don’t understand why getVisibility would all of a sudden be missing
cc @jim not sure if anything like this came up in the rebase
t

tylerwilson

11/23/2020, 4:52 PM
It is quite a large project, but the Compose part is only a view or two.
I put the Kotlin version back to 1.4.10 - but am still using the 1.4.20 gradle plugin - and it appears to be building and running fine now. I am running alpha07 of compose, which I believe is the latest.
c

Colton Idle

11/23/2020, 4:59 PM
1.4.20 of kotlin doesn't work with alpha07.
👆 1
Kotlin 1.4.20 support in compose is available only as a snapshot and alpha08 will be released after the holiday week in the USA.
👆 2
t

tylerwilson

11/23/2020, 5:00 PM
Okay, good to know, thank you. I will try to be patient…
though it would be nice to be clearer on this point in the Kotlin release notes, or in slack, maybe?
c

Colton Idle

11/23/2020, 5:04 PM
It has been mentioned on here a bunch of times, but I agree that slack doesn't exactly radiate information.
👆 1
l

Leland Richardson [G]

11/23/2020, 5:48 PM
i thought that the OP of this thread was using the snapshot version of compose which just landed 1.4.20 support. indeed, if you are using alpha07 then you must stick on 1.4.10