Intellij IDEA编译代码出现红色标志

如图

 

原因:项目没有模块化加载

解决方法:

快捷键 Ctrl+Alt+Shift+S 进入 Project Structure 界面,选择 Modules --> Sources -->选择项目的 src 原文件目录 --> Mark as --> Sources --> Apply --> OK

 

 

posted on 2017-02-14 10:41  流年染指了悲伤  阅读(5159)  评论(0编辑  收藏  举报