- 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.
- 極簡算法史:從數(shù)學到機器的故事
- Mastering Entity Framework Core 2.0
- Learning NServiceBus(Second Edition)
- Kali Linux Web Penetration Testing Cookbook
- C# Programming Cookbook
- Java EE核心技術與應用
- NoSQL數(shù)據(jù)庫原理
- 新一代SDN:VMware NSX 網(wǎng)絡原理與實踐
- Learning JavaScript Data Structures and Algorithms(Second Edition)
- 深入淺出Python數(shù)據(jù)分析
- Learning Kotlin by building Android Applications
- 計算語言學導論
- HTML5移動Web開發(fā)
- Deep Learning for Natural Language Processing
- Kotlin入門與實戰(zhàn)