为更快调试,在项目的某个类中增加main函数,结果运行main函数报错:
解决方法:
添加:<option name="delegatedBuild" value="false" /> 就可以正常使用main方法了。