First, you'll need to install the Kotlin plugin.
For Windows:
File → Settings → Plugins → Install JetBrains pluginFor Mac:
Android Studio → Preferences → Plugins → Install JetBrains pluginAnd then search for and install Kotlin. You'll need to restart the IDE after this completes.
