From the course: Android Development Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Convert a project to use Kotlin

Convert a project to use Kotlin - Android Tutorial

From the course: Android Development Tips

Convert a project to use Kotlin

- [Instructor] Over the next couple of months, the weekly tips will focus on use of Kotlin, the programming language that's now a full citizen in the Android development ecosystem. Android Studio 3 adds complete support for Kotlin programming through the use of a plugin, which is already installed. Before you start programming with Kotlin, you should make sure you have the most recent version of the Kotlin plugin. From the menu, go to File and then either Settings or Preferences and then to Plugins. In the text entry box, type Kotlin, and locate the Kotlin plugin. As of the time of this recording, the most recent version of the Kotlin plugin for Studio 3.1 was Version 1.2.21. If you see an older version and if there's an Update button, click that button and then follow the prompts to restart Android Studio. After it restarts, you should come back to this view. In the Project window, select the one and only Java class for this application, MainActivity. Go to the menu, and select Code.…

Contents