We strongly encourage you to use Android Studio 3.0 for Android development, irrespective of whether you're using Kotlin or not. Android Studio 3.0 is the latest version of Android Studio, with a lot of bug fixes, new features, and improved Gradle build time.
For Android Studio 3.0, you don't need to do any setup to use Kotlin for Android development. You just need to select Include Kotlin support
while creating a new project. Here is a screenshot for your reference:
We've highlighted the Include Kotlin support
section of the Android Studio—Create Android Project
dialog.
However, if you're using Android Studio 2.3.3, then follow these steps:
- Go to
Android Studio
|Settings
|Plugins
. - Search for
Kotlin
(take a look at the following screenshot) and install that plugin as follows:
- Start a new Android project.
- To apply the Kotlin plugin to the project, open the project level
build.gradle
and modify the content, as shown here:
- Open the
build.gradle
in your module ...