解决办法
需要把 src
目录标志为 Source Root
——
在 src
目录上点右键,选择 Mark Directory As
-> Sources Root
:
.java 文件的图标会发生改变:
EDIT
在 Project Structure
里修改output path
:
Press Ctrl+Alt+Shift+S
参考
[http://stackoverflow.com/questions/30088957/intellij-doesnt-recognize-java-project-after-cloning](IntelliJ doesn't recognize java project after cloning)
标签:java,IntelliJ,recognize,IDEA,cloning,Java From: https://www.cnblogs.com/r1-12king/p/17024094.html