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