https://kotlinlang.org logo
#k2-early-adopters
Title
# k2-early-adopters
a

Akram Bensalem

07/16/2022, 8:32 AM
I want to start adopting k2 compiler on my Android Project Where do I have to put this line ?
Copy code
-Xuse-k2
m

mcpiroman

07/16/2022, 9:29 AM
in
build.gradle
Copy code
tasks.withType<KotlinCompile> {
    kotlinOptions {
        freeCompilerArgs += "-Xuse-k2"
    }
}
a

Akram Bensalem

07/16/2022, 9:48 AM
It seems that I can't test K2 because of some plugins
7 Views