One. Open Android Studio-setting-plugins
Note that the first time is not searchable, will pop up a dialog box, enter Kotlin in the dialog box, select the second one. Click the "Install" button on the right to install
After the installation is complete, restart Android Studio.
Second, the new Kotlin project
Open Android Studio, check the new project, or in the original project, create a new kotlinactivity. You can also turn the original activity directly into kotlinactivity.
Directly new
The direct conversion method is: Select the activity--menu bar, select code--Select "Convert Java file to Kotlin"
Third, complete the final configuration.
Click into the app's build.gradle and you'll see a pop-up box appear in the top right corner with a hint "config" clicked
Click OK to do it. In sync Build.gradle
Four, the most important thing is, do not forget to add a sentence:
' kotlin-android-extensions '
Without this sentence, you don't realize the convenience that Kotlin brings to you.
Development environment construction for the introduction of Android--kotlin development