How to clear project cache in Intellij idea like Eclipse?

Sometimes the IDE makes some error due to the cache. In Eclipse, we can use clean solutions to this problem. But how can I do this in IntelliJ?

+102
java android intellij-idea
Jul 10 '13 at 3:05
source share
7 answers

Depending on the version you are using. It’s basically the same, just
File -> Invalidate cache, then restart Intellij
or
File β†’ Invalidate caches / Restart

The main difference is that in older versions you had to restart manually, because the cache files are not deleted before the restart. Newer versions will ask if you want to restart the computer.

Older versions Newer versions

As seen here on the Jetbrains official help page




You can also try deleting caches manually in the system folder for the installed version. The location of this folder depends on your OS and the installed version.

Windows Vista, 7, 8, 10
<SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.<PRODUCT><VERSION>

Linux / Unix
~/.<PRODUCT><VERSION>

Mac OS
~/Library/Caches/<PRODUCT><VERSION>

Read this for more details on cache location.

+193
Jul 10 '13 at 3:16
source share

Maybe not the answer , but it is definitely an AN answer.

If nothing else works for you, go to the kernel option: Close IDEA and delete the directory "... /. IntelliJIdeaa / system" using the local file system tools.

The .IntelliJIdea directory is usually located in your home directory. Your IDE configuration is in the "... /. IntelliJIdea / config" directory, so everything should be fine.

Obviously, this is not a β€œIDEA” way to do this and JetBrains is not fully supported. In addition, I do not use Android Studio, so I do not know if this will cause problems, but there you go.

This worked for me before when I had problems starting IDEA and nothing else works to get me going. Perhaps back up your entire .IntelliJIdea directory if you have a painful fear of losing all of your work>. <

+8
Jul 15 '13 at 1:12
source share

Try the following:

Go to Settings (File> Settings or ctrl + alt + S). In the "Project Settings" section, select the "Compiler" node. On the left, clear the "Clear output directory during rebuild" checkbox.

Please note that this is a parameter for each project. If desired, change it in the project template settings (Settings> Other settings> Template settings).

0
Jul 10 '13 at 3:16
source share

In addition to .Intellij* and invalidating the cache, if you really want to clear everything, also delete the .idea and *.iml each project that IntelliJ also creates ...

0
Oct 26 '18 at 20:15
source share

1) File -> Invalid Caches (in IDE IDEA)

2) Manually, got into C: \ Users \\ AppData \ Local \ JetBrains \ IntelliJ IDEA \ system \ caches and deleted

JetBrains: https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs

0
Feb 12 '19 at 13:25
source share

Delete the target folder in the intruder module. Then build | Rebuild the project. Also make sure you clear your web browser cache.

0
Mar 19 '19 at 18:37
source share

Another solution was to capture the VCS β†’ Cleanup Project.

-one
Jun 14 '18 at 12:39
source share



All Articles