- 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 RabbitMQ
- HBase從入門到實(shí)戰(zhàn)
- Functional Programming in JavaScript
- Responsive Web Design by Example
- 精通Python自動(dòng)化編程
- Learning Laravel's Eloquent
- Mastering Data Mining with Python:Find patterns hidden in your data
- Emotional Intelligence for IT Professionals
- C# 7.0本質(zhì)論
- 例解Python:Python編程快速入門踐行指南
- 少年小魚的魔法之旅:神奇的Python
- 新手學(xué)ASP.NET 3.5網(wǎng)絡(luò)開發(fā)
- Slick2D Game Development
- Kotlin入門與實(shí)戰(zhàn)
- Java程序設(shè)計(jì)基礎(chǔ)教程