Run single kotlin class with main function in android studio

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

    It is pretty easy. I saw posts regarding that and can't quickly follow up. The only difference you need to make is to change the configuration. Because you want to update your app compilation to kotlin class compilation. Create any Kotlin File/Class in any folder. Set Deploy options under Edit Configurations of Android app as Deploy "Nothing" and Launch value as "Nothing".

提交回复
热议问题