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

Paul Woitaschek

11/16/2021, 7:56 AM
Can an android compose project use a library compiled with kotlin 1.6?
e

Ejimax

11/16/2021, 8:56 AM
In my environment (compose 1.0.5) build fails with:
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
p

Paul Woitaschek

11/16/2021, 8:57 AM
But are you just using kotlin 1.6 or are you using a library compiled with kotlin 1.6?
e

Ejimax

11/16/2021, 8:58 AM
just using kotlin 1.6.
p

Paul Woitaschek

11/16/2021, 8:59 AM
Yep, that never works
e

Ejimax

11/16/2021, 9:00 AM
Is it because other dependencies doesn’t support kotlin 1.6?
c

Csaba Kozák

11/16/2021, 9:38 AM
Compose 1.0.5 only works with Kotlin 1.5.31
p

Paul Woitaschek

11/16/2021, 9:39 AM
I tried it and it works
5 Views