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

Daniele B

12/09/2020, 7:12 PM
I get this error:
Copy code
2020-12-08 15:59:51.291 2602-10311/? D/PowerUI: can't show warning due to - plugged: true status unknown: false
  java.lang.NoSuchFieldError: No field Companion of type Landroidx/compose/runtime/SlotTable$Companion; in class Landroidx/compose/runtime/SlotTable; or its superclasses
    at androidx.navigation.compose.NavHostKt.NavHost(NavHost.kt:163)
Android Studio: Arctic Fox 2020.3.1 Canary 2 Kotlin: 1.4.21 Compose: 1.0.0-alpha08 Navigation: 1.0.0-alpha03 any idea?
a

aiidziis

12/09/2020, 7:14 PM
AFAIK, Kotlin: 1.4.21 support is not ready yet for Compose - https://android-review.googlesource.com/c/platform/frameworks/support/+/1521081
d

Daniele B

12/09/2020, 7:18 PM
OK, thanks 👍
j

John O'Reilly

12/09/2020, 7:34 PM
I'm using 1.4.21 and seems to work fine with alpha08. Are you using accompanist library by any chance (and, if so, what version)?
v

Val Salamakha

12/09/2020, 7:44 PM
I’m using 1.4.21(alpha08) as well. It works fine.
d

Daniele B

12/09/2020, 7:50 PM
@John O'Reilly I am not using accompanist. I just realized I still had not updated the JDK to Java 11. After doing that, it works fine with 1.4.21