Go to Intellij Preferences -> Build, Execution, Deployment -> Kotlin Compiler . Update Language version and Api version to the one you wish. This should be the accepted answer.
Read moreWhat is latest Kotlin version?
1.6.20-M1 / February 8, 2022. Typing discipline. Inferred, static, strong. Platform. Android.
Read moreWhich compiler does Kotlin use?
Kotlin is supported by all major Java IDEs including IntelliJ IDEA, Android Studio, and Eclipse. In addition, a command line compiler is available and provides straightforward support for compiling and running applications.
Read moreDoes Kotlin have a compiler?
Kotlin/JVM compiler options The Kotlin compiler for JVM compiles Kotlin source files into Java class files . The command-line tools for Kotlin to JVM compilation are kotlinc and kotlinc-jvm . You can also use them for executing Kotlin script files.
Read more