- 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.
- Learning Scala Programming
- React Native Cookbook
- 樂高機器人設計技巧:EV3結構設計與編程指導
- 深入理解Elasticsearch(原書第3版)
- Advanced Express Web Application Development
- HTML5權威指南
- 案例式C語言程序設計實驗指導
- SQL Server 2008 R2數據庫技術及應用(第3版)
- Python 3 Object:oriented Programming(Second Edition)
- 大數據時代的企業升級之道(全3冊)
- Mudbox 2013 Cookbook
- 程序員必會的40種算法
- 現代C++語言核心特性解析
- 美麗洞察力:從化妝品行業看顧客需求洞察
- Flutter從0基礎到App上線