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

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
主站蜘蛛池模板: 蒲城县| 岳阳县| 乐平市| 西平县| 漯河市| 阜南县| 江城| 临潭县| 华安县| 西吉县| 利津县| 南涧| 嵊州市| 哈密市| 霸州市| 和龙市| 沙坪坝区| 铜山县| 营山县| 房产| 上饶市| 都江堰市| 天峨县| 久治县| 古蔺县| 米泉市| 汉中市| 长白| 栾城县| 盖州市| 金门县| 德兴市| 松溪县| 集贤县| 宁津县| 平舆县| 铜鼓县| 襄樊市| 济南市| 汉源县| 永丰县|