android studio直接运行main方法提示SourceSet with name 'main' not found错误的解决方法
在.idea目录下的gradle.xml文件里,
<GradleProjectSettings>节点下添加<option name="delegatedBuild" value="false"/>
即可<GradleProjectSettings> <option name="delegatedBuild" value="false"/> //新增这行即可 <option name="testRunner" value="GRADLE" /> ... </GradleProjectSettings>