Run single kotlin class with main function in android studio
Update: Approach 1: Now you can create a kotlin file with empty main() method and then you can run the code directly using run icon on left(of 7th line) in android studio (AS version: 3.5.3 ) editor like This will internally create the TestKt(name of file) class with PSVM method(and required structure) to execute the … Read more