Henry Zhu Henry Zhu - 2 months ago 19
Android Question

What does the Invalidate Caches/Restart do in Android Studio?

I have seen many answers suggest that one should

Invalid Caches/Restart
in order to improve the performance of
Android Studio
, whether it's
memory
or
CPU
. It also can be used to set up correct themes. I was wondering what it actually does though, since it seems to be the solution to so many problems.

Answer

Android Studio makes a lot of files as caches and does not delete them. This can cause trouble when there is a need to make new files, so clearing 'cacheswill clear the oldcache` and make it fast.