How to deploy kotlin in androidstudio?

Kotlin is a good language,more playable than Java.So how do we deploy kotlin?

First,install the kotlin plug-in in Plugins. If you are the latest AndroidStudio,you don't need to take this step,because this plug-in has been integrated.

Second,configure kotlin in the build.gradle of the project

Third,configure 'kotlin-android'  and 'kotlin-android-extensions' in app's gradle.

Fourth, click SyncNow to start synchronization

About Anko implementation of kotlin, Android UI and configuration will be mentioned later in the article, thank you.

原文地址:https://www.cnblogs.com/sunjv/p/9693857.html