Search code examples
android-studiorefactoring

Index corruption detected. Please retry the refactoring - indexes will be rebuilt automatically Android Studio


While trying to refactor in Android Studio, it is showing this. What should I do?


Solution

  • I finally find the solution by reading through documentation.

    Go to File -> Invalidate caches / Restart...

    Android Studio Restarts. if not restart your computer. This one works for me.