i get such an error when i try to run my app,any s...
# announcements
f
i get such an error when i try to run my app,any suggestions please
g
But it’s a warning, not an error
You have warning about unused
args
parameter, because you use Kotlin Scripting (file type is .kts), in this case you don’t need main function, just unwrap your code and move it to top level. Also, because of this you main function is not called by default
If you don’t need scripting and you want to use
main
function as the entry point of your app, just change extension from
.kt
to
.kts