Some issue faced with after creating new project the first time in Idea for Gradle-Kotlin project.
1. Make sure project root name consistent to package: src/main/kotlin/[packagename]/...
2. main() exist outside class
3. MainClass = [package].MainKt
The suffix Kt is required, or there will be a 'main() not exist in main class' error.
沒有留言:
張貼留言