Intellij not recognizing module reference
Answered
I have added a module to my project, properly referenced the module, and then rebuilt the entire project. Still when I attempt to add the import to this new module to my existing module. It doesn't recognize the reference. I have spent quite a bit of time on this and can find no answers. Any help is appreciated.
Please sign in to leave a comment.
Could you please prepare and provide a small sample project illustrating the problem and the exact steps to reproduce (complete zipped source tree and project files)?
----
Forum doesn't support non-image attaches. You can either share it via Dropbox or similar service or submit a ticket to support. Another way is to use our upload form: https://intellij-support.jetbrains.com/hc/en-us/articles/206869619-Uploading-Large-Files-for-JetBrains-Support-Team.
Import statement in your code (import main.java.two;) is invalid. It specifies the package instead of the classes to import.
If you want to import all the classes from the package, use this:
If you want to import just one class, use this:
Screenshot:
Read http://www.leepoint.net/language/10basics/import.html.