This problem happens intermittently for different libraries and different projects.
When trying to import a library, the package will be recognized, but the class name can\'
I had a similar issue with my imported Maven project. In one module, it cannot resolve symbol on import for part of the other module (yes, part of that module can be resolved).
I changed "Maven home directory" to a newer version solved my issue.