Build Failed With An Exception Error In Kotlin
Got this error after updating my Kotlin plugin on android studio. package com.example.test fun main(args: Array) { println('Hello world') } This is the error I
Solution 1:
This is telling you that you created an Android project but that Android applications use the Android lifecycle to run, not main.
If you want to execute plain kotlin code one option is to add a kotlin library to the project using File -> New Module -> Kotlin and add the main method there
Post a Comment for "Build Failed With An Exception Error In Kotlin"