-
It is so great to see this global configuration script you wrote @yujincheng08 . android{
...
kotlinOptions {
jvmTarget = "1.8"
javaParameters = true
}
...
} kotlinOptions seems to be an extension function of BaseAppModuleExtension, but I cannot reference it in the global configuration. What should I do😢? |
Beta Was this translation helpful? Give feedback.
Answered by
tianjyan
Sep 25, 2023
Replies: 1 comment 1 reply
-
try this in your root build.gradle.kts import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
...
tasks.withType(KotlinCompile::class.java).all {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.javaParameters = true
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
buffcow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
try this in your root build.gradle.kts