https://kotlinlang.org logo
h

henrikhorbovyi

06/05/2020, 5:32 PM
?
l

Louis Pullen-Freilich [G]

06/05/2020, 5:34 PM
I think you need to set a compiler flag, in your
build.gradle
:
Copy code
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
        kotlinOptions {
            freeCompilerArgs += '-XXLanguage:+NonParenthesizedAnnotationsOnFunctionalTypes'
        }
    }
h

henrikhorbovyi

06/05/2020, 5:38 PM
Yeah... It worked \o/ Thanks
v

Vinay Gaba

06/05/2020, 5:56 PM
This is related to a kotlin bug that is fixed in
Kotlin 1.4
👍 1
Afaik, Compose doesn’t work with Kotlin 1.4 yet so you need to use that compiler flag shared above. This should change soon though.
r

romainguy

06/05/2020, 6:12 PM
Yes this is only temporary
👍🏼 1
h

henrikhorbovyi

06/05/2020, 9:57 PM
@Vinay Gaba thanks for the details 🙌
🙌🏼 1
2 Views