Hi there. For testing the new IR compiler backend ...
# jvm-ir-backend-feedback
j
Hi there. For testing the new IR compiler backend the documentation says to add the following block to the Gradle build file:
Copy code
compileKotlin {
    kotlinOptions.useIR = true
}
this gives a build error for Android projects. If I add the following under
android
in my
build.gradle
file it seems to work. Am I correct?
Copy code
kotlinOptions {
    useIR = true
}
k
What error do you have?
j
Copy code
A problem occurred evaluating project ':app'.
> Could not find method compileKotlin() for arguments [build_76sqb1kgwpwwcl6cpgdem0k5y$_run_closure3@24388d8e] on project ':app' of type org.gradle.api.Project.
I have updated the plugin in Android Studio and I am using Kotlin 1.4.31
i