- Kotlin Blueprints
- Ashish Belagali Hardik Trivedi Akshay Chordiya
- 199字
- 2021-07-02 21:50:21
Setting up the Kotlin plugin for Android Studio
In order to ensure that Android Studio supports Kotlin, the first thing to do is to install the Kotlin plugin for Android Studio by clicking on Android Studio | Preferences | Plugins | Browse Repository |, type Kotlin in the search box, and install:

Android Studio will ask for a restart. Please follow the steps. The next step will be adding Kotlin classpath to the project level build.gradle file:

Once the classpath is added we will add Gradle project dependency into the app level build.gradle and apply the Kotlin plugin:

Now, add the Kotlin (the following screenshot also shows Anko, you can skip this for now) dependencies in the app level build.gradle file:

We are using Kotlin version 1.1.4. Sync your Gradle project and setup is complete!
Here are some tips that will save you time during set up. Always follow official tutorials. Check if your studio has the proper version. In the plugin, setup steps make a note of enabling plugin support by writing the apply plugin: kotlin-android in the build.gradle file. And make sure you restart the studio once all installation is complete.
- Docker and Kubernetes for Java Developers
- Learning Spring 5.0
- 造個小程序:與微信一起干件正經事兒
- JavaScript語言精髓與編程實踐(第3版)
- OpenNI Cookbook
- 人臉識別原理及算法:動態人臉識別系統研究
- 用Python實現深度學習框架
- 深入淺出React和Redux
- The Professional ScrumMaster’s Handbook
- JSP程序設計實例教程(第2版)
- Mastering Apache Storm
- OpenCV 3計算機視覺:Python語言實現(原書第2版)
- R語言數據挖掘:實用項目解析
- Spring Data JPA從入門到精通
- Parallel Programming with Python