Run single kotlin class with main function in android studio

后端 未结 15 804
后悔当初
后悔当初 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:20

    I faced the same problem and a workaround is run your code in a test class under test folder, then right-click on Run {your test class}

    It is enough if you only want to play with Kotlin.

提交回复
热议问题