Happened to me, when I had two classes with the same name in my project. After deleting the redundant one, error disappeared.
Happened to me, when I had two classes with the same name in my project. After deleting the redundant one, error disappeared.