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

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
主站蜘蛛池模板: 仁寿县| 老河口市| 洪湖市| 噶尔县| 余江县| 秦安县| 余姚市| 抚松县| 临猗县| 麟游县| 大冶市| 乌拉特后旗| 阿鲁科尔沁旗| 理塘县| 临澧县| 若尔盖县| 岫岩| 尉犁县| 雷山县| 棋牌| 云林县| 金阳县| 房产| 西乌| 神木县| 高清| 洱源县| 长乐市| 菏泽市| 曲沃县| 宣恩县| 曲靖市| 重庆市| 嘉黎县| 乌兰察布市| 衡水市| 兰西县| 绥芬河市| 嘉义县| 大冶市| 巴林左旗|