Today when I started Android Studio it got stuck with "Scanning files to index..." in the background process and it never finishes. I can open the background processes display and see it looping over the same directories. Yesterday it was working fine and there were no issues with my project.
I tried:
C:\Users\xxx\.AndroidStudio3.5\system\caches
and restarting; Is there a way to kill this process. I cannot do builds or debug.
I looked at this answer but it is old and nothing suggested helped.
Out of desperation I re-installed Android Studio, but first uninstalled it removing the user settings (which I didn't do on the previous uninstall). Threw in a couple of reboots between uninstall and re-install and start up. This seems to have fixed the problem for me!
I have no rational explanation for why, other than something in the user settings directory was causing the problem. I guess if you have a similar problem remember to check the box to delete the user settings when doing the uninstall. It's a shame that this kind of issue doesn't have a work around, it seems to happen intermittently over the years and versions of the Android Studio.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With