| Start |
|---|
| Installing the Kotlin plugin First, you'll need to install the Kotlin plugin. For Windows:
For Mac:
And then search for and install Kotlin. You'll need to restart the IDE after this completes. |
| Configuring an existing Gradle project with Kotlin You can create a New Project in Android Studio (opens new window) and then add Kotlin support to it or modify your existing project. To do it, you have to:
For a new project, |
Creating a new Kotlin Activity
Final class could look like this: |
| Converting existing Java code to Kotlin Kotlin Plugin for Android Studio support converting existing Java files to Kotlin files. Choose a Java file and invoke action Convert Java File to Kotlin File: |
Starting a new Activity You can add extras to the intent just like in Java. RemarksIf you want to learn more about Kotlin Programming Language check out Documentation (opens new window). |
Read Article
https://develop.horje.com/learn/1434/reference