Rebuild IntelliJ project indexes

Intellij IdeaJetbrains Ide

Intellij Idea Problem Overview


IntelliJ IDEA 10.5.1 is reporting zero usages for all method, classes etc.

Can I force IntelliJ to rebuild the project indexes?

Intellij Idea Solutions


Solution 1 - Intellij Idea

File -> Invalidate caches...

(Force rebuild of all caches and indices on next startup)

Restart IntelliJ IDEA.

Caution: This might Remove local history.

Solution 2 - Intellij Idea

Restarting IntelliJ fixed this in my case (Ultimate 2019.1) -- on restarting, it rebuild the indexes by itself.

An interesting side effect, apart from all imports and non-local references coming up as errors, was the error reported on all string literals:

Incompatible types. 
Required: java.lang.String 
Found: java.lang.String

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPaul McKenzieView Question on Stackoverflow
Solution 1 - Intellij IdeaBoris PavlovićView Answer on Stackoverflow
Solution 2 - Intellij IdeadrevickoView Answer on Stackoverflow