郭老师,您好,求助,
在helloworld项目中新建LearnKotlin.kt,输入fun main函数 println("hello world"),运行失败。
FAILURE: Build failed with an exception.
* Where:
Initialization script 'C:\Users\stserver86001\AppData\Local\Temp\LearnKotlinKt_main__.gradle' line: 27
* What went wrong:
A problem occurred configuring project ':app'.
> Could not create task ':app:LearnKotlinKt.main()'.
> SourceSet with name 'main' not found.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org