
A problem occurred configuring project ':app'.
>Could not create task ':app: **** .main()'.
>SourceSet with name 'main' not found.
<GradleProjectSettings>标签节点下添加一行
<option name="delegatedBuild" value="false" />
保存,即可使用run ** with main() 和 debug ** with main()
有人在猜运上面盖了gradle.xml之后运行main方法又报如下错陵兆辩误:
Error running ' ** ': Command line is too long. Shorten command line for ** or also for Application default configuration.
修改.idea下的workspace.xml
找到<component name="PropertiesComponent">标签节点并在之下添加一行
<property name="dynamic.classpath" value="true" />
然后保存即尺缺可。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)