intellij icon over project files

前端 未结 3 1804
生来不讨喜
生来不讨喜 2021-01-31 09:26

intellij has placed what look like no entry signs over my java files (red circles with a line through) searched around but cannot find why? Would anyone know please.

It\

3条回答
  •  迷失自我
    2021-01-31 09:52

    For those who have this problem with Android Studio. Try the following:

    1) Navigate to your project settings

    2) Go to Modules -> and under the module option tab select "Sources" - There should be an option to "Add Content Root" and below it, blue, green, and red tab folders for Source Folders, Test Source Folders, and Excluded Folders respectively.

    3) On the right side, right click on the java source folder you want to add and select to add it to Source or Tests (depending on what kind of files you are adding).

    4) The added files should now show up with a blue circle with a c in the center on the left hand project window pane.

提交回复
热议问题