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:
In .idea folder, many XML files are present.
This error comes if some XML files are invalid.
First check workspace.xml file is valid or not.
If workspace.xml file is valid then check other file's.
This answer works for both IntelliJ & AndroidStudio
If you cannot even open your project in IntelliJ[AndroidStudio]:
Go to the directory <your_home>/.IntelliJIdeaXX[.AndroidStudioXX]/system/cache
WHERE
<your_home> is
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.
In my case, the project files under .idea got corrupted. If you have the project files checked in SVN or saved somewhere just remove all the local changes and revert to the previous working copy . Also rebuild the cache by File --> Invalidate Cache.
After that it is fixed for me. The "Error:Internal error: (org.jdom.input.JDOMParseException) " went away.
In my case nothing of these worked.
But the final solution was very easy:
rm -r ~/Library/Preferences/AndroidStudio[X.X]/codestyles/