Run single kotlin class with main function in android studio

后端 未结 15 761
后悔当初
后悔当初 2020-12-13 13:04

I am trying to get familiar with Kotlin to use in my android apps. So first I want to try out some simple kotlin examples, just to get familiar with syntax of kotlin.

<
15条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 13:27

    In my Android Studio, simply open the Kotlin file with your main function, then to the left of the main function there's a green "Run" triangle. Just click on that one to run this file.

提交回复
热议问题