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\'
The same problem. If these methods not work. you can try to delete the lib from local maven repository, and reimport to pom .
Finally it' fine for me.