Home » Kotlin Hello World App

Kotlin Hello World App

by Online Tutorials Library

Kotlin Hello World App

Let?s develop a first hello word application on Android studio using Kotlin programming language. To develop android application launch Android Studio and select option ‘Start a new Android Studio project’.

Kotlin Hello World App

Provide a application name (‘Hello World’ in my case) and check ‘Include Kotlin support’ and proceed.

Kotlin Hello World App 2

Select API level for android application and click next.

Kotlin Hello World App 3

Select Activity type and click next.

Kotlin Hello World App 4

activity_main.xml

Create an activity_main.xml file in layout folder and add the following code.

MainActivity.kt

Create MainActivity.kt file in example.app.tutoraspire.helloworld package add the following code.

Now run your app.

Kotlin Hello World App 5

Output:

Kotlin Hello World App 6

Next Topic#

You may also like