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 tried invalidating caches and restarting, but the only thing that worked for me was wiping out the .idea directory completely, then creating a new project from scratch.