Live2D

AS运行main()方法报错:SourceSet with name ‘main‘ not found

转载出处:https://blog.csdn.net/weixin_42574892/article/details/107911480

AS运行main()方法报错:SourceSet with name ‘main’ not found

记录一下在AS上运行Java文件的main()方法时报错,报错如下:
在这里插入图片描述解决方法:在.idea文件夹下的gradle.xml文件中添加<option name="delegatedBuild" value="false" />,然后重新运行就可以了
在这里插入图片描述

posted @ 2020-12-09 14:33  幽香飞狐  阅读(588)  评论(0)    收藏  举报
Live2D