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\'
IntelliJ has issues in resolving the dependencies. Try the following: