简体   繁体   中英

Intelij Ultimate 2021.2 : import class in grey

I'm stuck with the following issue:

I need to import a custom class called "fr.sigma.eaiPublishQueue" in order to run a project developed by a peer.

I don't know why, it's greyed out despite being present in the project's tree and one of its methods being called by the main class.

After multiple reload or rebuilding project or even clone again the repo, issue remains.

在此处输入图像描述 在此处输入图像描述

It appears the WatchFolder class is located in the same package as the PublishQueue class. This means that PublishQueue does not need to be imported into the WatchFolder class because it is already available. IntelliJ IDEA is alerting you to this fact by greying the import statement out. Hovering the mouse cursor over the import statement should show a warning as well.

I do apologize for my answer's delay. I imported manually my project libs (non maven) and it finally ran fine.

Thank you again for your kind help !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM