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\'
What did it for me is to edit the package file in the .idea folder as I accidentally added sources to this jar library and android couldn't resolve it by deleting the sources line as marked in the b/m picture library error.