复现步骤:
package test;
public class Test {
    public static void main(String[] args) {
    }
}
通常我希望我可以,System.out.printLn("Hello World")但是这次,无论是新项目,我都会收到以下错误:
2:34:23 PM: Executing task 'Test.main()'...
Executing tasks: [Test.main()] in project C:\Users\regan\Desktop\events\MyApplication
FAILURE: Build failed with an exception.
* Where:
Initialization script 'C:\Users\regan\AppData\Local\Temp\Test_main__2.gradle' line: 20
* What went wrong:
A problem occurred configuring project ':app'.
> Could not create task ':app:Test.main()'.
   > SourceSet with name 'test' not found.
* Try:
Run with …