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

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
主站蜘蛛池模板: 来凤县| 博白县| 濮阳县| 桐庐县| 敦煌市| 应城市| 岑巩县| 翼城县| 平潭县| 洛阳市| 贞丰县| 乳源| 商河县| 昭平县| SHOW| 施甸县| 枣阳市| 固镇县| 南康市| 大丰市| 泗水县| 荔浦县| 龙山县| 衡阳县| 吴忠市| 民勤县| 永仁县| 梅州市| 苏州市| 库伦旗| 和政县| 确山县| 界首市| 读书| 双江| 广元市| 延津县| 龙江县| 福泉市| 墨玉县| 潼关县|