I work in Intellij IDEA, but my computer freezes so I turn off my computer. (long click power button) When I turned on computer and start IntelliJ IDEA I had this error:
This answer works for both IntelliJ & AndroidStudio
If you cannot even open your project in IntelliJ[AndroidStudio]:
Go to the directory
WHERE
C:\Users\<**Your User**>\ (or %USERPROFILE%)~/XX is your IntelliJ version (This directory is "caches" in some versions.)
This has worked for me in the past.