If you are using Android Studio, clicking on File > Invalidate caches/restart(重新启动) should solve the problem.