Invalidate Caches / Restart. 2. Click Invalidate and Restart to clear the cache and restart Android Studio.