Javatpoint Logo
Javatpoint Logo

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.javatpoint.helloworld package add the following code.

Now run your app.


Kotlin Hello World App 5

Output:


Kotlin Hello World App 6
Next Topic#





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA