Is There A Way To Invalidate / Cache Restart From Terminal?
I was wondering if there was any command from terminal that I could use to match the use in Android Studio of doing file>invalidate cache/restart. Thanks!
Solution 1:
According to a JetBrains employee doing the following will have the same effect:
- Shut down Android Studio externally (using
kill
or similar command), then - Delete
system/caches
directory (more on that later), and - Start the IDE again.
How to find system/caches
directory?
Location of the IDE files depends on the operating system, product and version.
For IntelliJ IDEA follow this guide.
So e.g. for
IntelliJ IDEA 2020.3
on macOS you should be looking for~/Library/Caches/JetBrains/IntelliJIdea2020.3/caches
directoryFor Android Studio follow the same guide as above but instead of
JetBrains
in the path useGoogle
So e.g. for
Android Studio 4.2
on macOS you should be looking for~/Library/Caches/Google/AndroidStudio4.2/caches
directory
Post a Comment for "Is There A Way To Invalidate / Cache Restart From Terminal?"