3

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:

  • clearing caches and restart;
  • I tried deleting the system caches directory in C:\Users\xxx\.AndroidStudio3.5\system\caches and restarting;
  • Disconnected all devices, no AVDs running;
  • reinstalled the Android Studio (3.5.2 built 31-Oct-2019), I already had the latest, but WTH!
  • rebooted windows!

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.

zkon
  • 568
  • 1
  • 6
  • 19

3 Answers3

2

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.

zkon
  • 568
  • 1
  • 6
  • 19
0

I was having the similar problems from time to time. What I found to fix this:

  1. Exit another software that is watching the same folders (for me it was Sublime);
  2. Exit Android Studio;
  3. Wait until "fsnotifier64" process finishes;
  4. Start Android Studio.

1st and 2nd items may be probably exchanged.

kinORnirvana
  • 1,667
  • 2
  • 17
  • 22
-2

In some case you need good speed internet and good spec too.. Have your pc meet min spec ?

Lovanto
  • 21
  • 3