In my case, this error showed because I changed the package name without ticking the boxes (Search in comments and strings and Search for text occurrences)
The solution for me:
Rename package again and make sure you tick the two boxes as in the photo, then Do Refactor