AndroidStudio 运行main()报错SourceSet with name ‘main‘ not found.

AndroidStudio 运行main()报错SourceSet with name ‘main‘ not found._第1张图片

解决方法很简单找到.idea下的gradle.xml

 AndroidStudio 运行main()报错SourceSet with name ‘main‘ not found._第2张图片

下插入

AndroidStudio 运行main()报错SourceSet with name ‘main‘ not found._第3张图片

运行!

你可能感兴趣的:(Android,Studio,maven,java)