IntelliJ IDEA 不能识别 Java 项目

解决办法

需要把 src 目录标志为 Source Root——

src 目录上点右键,选择 Mark Directory As -> Sources Root

enter image description here

.java 文件的图标会发生改变:

enter image description here



EDIT

Project Structure 里修改output path

Press Ctrl+Alt+Shift+S

enter image description here

参考

[http://stackoverflow.com/questions/30088957/intellij-doesnt-recognize-java-project-after-cloning](IntelliJ doesn't recognize java project after cloning)

posted @ 2016-04-17 22:56  SmartJuneThx  阅读(5201)  评论(0编辑  收藏  举报