Just use IntelliJ is in the process of writing code, the computer suddenly froze black screen, and then forcibly shut down after the restart of the computer, found that the project which file, which file error, the error caused by class introduction can not find, Maven again clean,install,package are not so, The statement that introduces the class, the package can point in to see, found that the introduced class does exist, but the compilation is to show that the class does not exist.
Solution:
File–invalidate Caches/restart
Clean up the cache and restart it.
Other non-reliable solutions on the Internet:
1, restart IntelliJ
2, reboot the computer.
3, reconfigure JDK
4, reconfigure Tomcat
5, the item was deleted and downloaded again from git
These five are all tried, not very well.
IntelliJ Cleanup Cache and restart official explanation:
**cleaning system cache** IntelliJ idea caches a great number of files, therefore the system Cache could one day become over Loaded. In certain situations the caches would never be needed again, for example, if you work with frequent short-term projects.
Also, the only way to solve some conflicts are to clean out the cache. **to the system caches:** on the main menu, choose File | Invalidate Caches/restart. The Invalidate caches message appears informing you the caches would be invalidated and rebuilt on the next start.
Use buttons in the dialog to invalidate caches, restart IntelliJ idea or both.
The **it is important to note the following:** of the files are not actually deleted and until idea IntelliJ.
Opening and closing a project does not the any files.
**warning:** cleaning out of the system caches, keep in mind that:it results to the local clearing. To avoid losing data, check in the changes to your version control system before invalidating cacheS. Causes a complete rebuild of the projects ever run in the "current version of" IntelliJ idea.
IntelliJ Idea 2016.2 help