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

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
主站蜘蛛池模板: 镇远县| 崇礼县| 新丰县| 土默特右旗| 涡阳县| 泽库县| 榆林市| 长沙县| 京山县| 崇阳县| 绥滨县| 伊宁市| 云阳县| 东港市| 万山特区| 花垣县| 明水县| 阿克苏市| 清远市| 伊川县| 博乐市| 滁州市| 绿春县| 翁牛特旗| 嘉祥县| 大埔县| 奇台县| 刚察县| 辽宁省| 焦作市| 鹤峰县| 枝江市| 巴中市| 从江县| 万年县| 都昌县| 晋江市| 象山县| 沈丘县| 南安市| 澎湖县|