官术网_书友最值得收藏!

Creating a Kotlin project

When you first open Android Studio, you will be presented with a wizard. To start, select Start a new Android Studio project,as shown in the following screenshot:

Android Studio wizard

Now you will be asked to define the properties of the project. Please make sure that the Include Kotlin support option is enabled:

 
Setting the properties of a new Android project with Kotlin support

The next step is to select the Android version that you are targeting. The default options are good for this step:

Selecting the target SDKs

Then, select the option to have just an empty activity, and leave its configuration as default:

Selecting an empty activity

Now you will be prompted to select the name for the class and the layout of the activity. Please write MainActivity as the name of the activity, while setting activity_main as the name of the layout:

Configuring the default activity
主站蜘蛛池模板: 个旧市| 梧州市| 京山县| 台南县| 香港 | 汉沽区| 巴楚县| 镶黄旗| 城固县| 泸西县| 荆州市| 开封县| 宝应县| 周宁县| 顺平县| 邵阳县| 太湖县| 柏乡县| 衡东县| 斗六市| 松阳县| 观塘区| 鄂伦春自治旗| 布拖县| 永春县| 合作市| 景德镇市| 漾濞| 长宁区| 乐昌市| 大荔县| 定远县| 云和县| 甘南县| 司法| 万源市| 崇信县| 霍林郭勒市| 会东县| 博罗县| 广宁县|