使用svn或者git下拉代码后出现某些java文件出现小红叉,不能被编译从而报错。 如图:
打开 File |Settings | Build, Execution, Deployment | Compiler | Excludes 将排除的文件删掉后点击apply就可以了。 如图: