Android Studio uses Kotlin for the first time (environment preparation article)

Source: Internet
Author: User

Google announced at this year's I/O developers conference that the Kotlin language should be used as the first-level programming language of Android development. Kotlin is developed by JetBrains, interoperable with Java 100%, and has many new features that Java does not yet support. So you know what Kotlin is? If you do not know that then hurriedly own Baidu.

about Android Studio 3.0 after the integration of Kotlin, the current 2.3 using Kotlin and 3.0 will be different, basically no difference.

Next, we create the Kotlin project step-by-step, using the Android Studio 2.3.1

first you need to integrate Kotlin Plug-ins



after installing the plug-in, you will be prompted to reboot.

After you restart Studio, you can use the ...


Check to see if there are any kotlin activity, which means the installation was successful ...

below we will create the Kotlin project:


as we created the project before ...

Please review the creation details:




Now click to run, the program will flash back .... Flash back project appears configure, configuration Configure as follows:


Click Conidgure


Click OK



several lines of code in the diagram are shown in the Gradle file

introduced the Kotlin plug-in

click: Syns now Sync is complete and it's all right again.



By This, your studio has successfully configured the Kotlin and successfully ran the first Hello world.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.