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\'
For 2020.1.4 Ultimate edition, I had to do the following
View -> Maven -> Generate Sources and Update Folders For all Projects
The issue for me was the libraries were not getting populated with mvn -U clean install from the terminal.
mvn -U clean install