Find usage of id not working in Android Studio on Windows

squiroid picture squiroid · Mar 4, 2015 · Viewed 8.7k times · Source

I selected an id in XML, mouse right click, find Usage shows no occurrence of id even Id exist in java file. And if i do the same in Mac its finding it.

So is there any cache issue or something else ?

Answer

josedlujan picture josedlujan · Mar 4, 2015

To fix the autocomplete go to:

File -> Invalidate Caches -> Restart -> Click at Invalidate and Restart