Convert existing Java code to Kotlin code To convert Java code to Kotlin, open the Java file in Android Studio, and select Code > Convert Java File to Kotlin File . Alternatively, create a new Kotlin file (File > New > Kotlin File/Class), and then paste your Java code into that file.
Read moreHow do I create a maven project in Kotlin?
Kotlin – How to create Maven project for Kotlin
Read moreHow do I change my version of Kotlin?
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 use an old version of Kotlin plugin?
This time I helped myself with the following:
Read moreHow do I find my kotlin version?
You can check the Kotlin version in Tools | Kotlin | Configure Kotlin Plugin Updates . If you have projects created with earlier Kotlin versions, change the Kotlin version in your projects and update kotlinx libraries if necessary – check the recommended versions.
Read more