What does this symbol mean in IntelliJ? (red circle on bottom-left corner of file name, with 'J' in it)

后端 未结 19 1081
栀梦
栀梦 2020-11-29 18:52

Under the target folder in IntelliJ for a Java project I created, I have a few java source files in the package. Beside each file the \'J\' icon has a red circle with a lin

相关标签:
19条回答
  • 2020-11-29 19:18

    It means those files aren't part of the project settings.

    0 讨论(0)
  • 2020-11-29 19:19

    The first answer from irreputable above that starts out with "you need to specify the source dir" is correct, but I don't see him telling you the easy way to do so.

    Simply right click on the java sources folder ("java" under src/main/java if it is a Maven project for example) and select Mark Directory As > Sources Root (see screenshot below).

    0 讨论(0)
  • 2020-11-29 19:19

    I downloaded a project from github with .idea folder. After deleting that folder, everything was ok.

    0 讨论(0)
  • 2020-11-29 19:22

    Find all IntelliJ (v15) symbols over here: https://www.jetbrains.com/idea/help/symbols.html

    This site states that this icon stands for "Java class located out of the source root. Refer to the section Configuring Content Roots for details."

    0 讨论(0)
  • 2020-11-29 19:26

    Maybe your project has not been as android project by android studio, please make sure that plugin 'android support' has been enabled(Android Studio Preferences -> Plugins -> Select Android Support)

    0 讨论(0)
  • 2020-11-29 19:27

    If it is a maven project

    1. right click on the pom.xml
    2. Add As Maven Project

    Thanks

    0 讨论(0)
提交回复
热议问题