31.1 Creating the Example Project in Android Studio
Launch Android Studio and select the Create New Project option from the quick start menu in the welcome screen and, within the resulting new project dialog, choose the Empty Activity template before clicking on the Next button.
Enter KotlinLayout into the Name field and specify com.ebookfrenzy.kotlinlayout as the package name. Before clicking on the Finish button, change the Minimum API level setting to API 26: Android 8.0 (Oreo) and the Language menu to Kotlin.
Once the project has been created, the MainActivity.kt file should automatically load into the editing panel. As we have come to expect, Android Studio has created a template activity and overridden the onCreate() method, providing an ideal location for Kotlin code to be added to create a user interface.