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 moreHow do I set up Kotlin?
To add Kotlin to your project, do the following:
Read moreHow do I find my Kotlin version in IntelliJ?
You can follow these instructions to install the preview version of the Kotlin Plugin for IntelliJ IDEA or Android Studio.
Read moreWhat is Kotlin plugin IntelliJ?
The Kotlin plugin provides language support in IntelliJ IDEA and Android Studio . Getting Started in IntelliJ IDEA. Getting Started in Android Studio. Public Slack. Issue tracker.
Read moreHow do I run the first Kotlin program in IntelliJ?
In IntelliJ IDEA, a project helps you organize everything that is necessary for developing your application in a single unit.
Read moreHow do I run the main function in Kotlin IntelliJ?
When your project is set up correctly, make sure that your main function is called “main” and has a parameter of type Array<String> . Next to it a Kotlin “K” will appear, which you can click on to run your main function.
Read moreDoes Kotlin use JVM?
Kotlin mainly targets the JVM , but also compiles to JavaScript (e.g., for frontend web applications using React) or native code via LLVM (e.g., for native iOS apps sharing business logic with Android apps). Language development costs are borne by JetBrains, while the Kotlin Foundation protects the Kotlin trademark.
Read more