Intellij IDEA crashed, and now throws an error

后端 未结 10 1899
你的背包
你的背包 2020-12-12 18:08

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:

相关标签:
10条回答
  • 2020-12-12 18:35
    1. In .idea folder, many XML files are present.

    2. This error comes if some XML files are invalid.

    3. First check workspace.xml file is valid or not.

    4. If workspace.xml file is valid then check other file's.

    0 讨论(0)
  • 2020-12-12 18:36

    This answer works for both IntelliJ & AndroidStudio

    If you cannot even open your project in IntelliJ[AndroidStudio]:

    • Close IntelliJ[AndroidStudio]
    • Go to the directory <your_home>/.IntelliJIdeaXX[.AndroidStudioXX]/system/cache

      WHERE

      • <your_home> is

        • Windows Users: C:\Users\<**Your User**>\ (or %USERPROFILE%)
        • Linux Users(Ubuntu), Mac: ~/
      • XX is your IntelliJ version (This directory is "caches" in some versions.)

    • Remove all the files in the cache directory.
    • Then restart IntelliJ[AndroidStudio]

    This has worked for me in the past.

    0 讨论(0)
  • 2020-12-12 18:36

    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.

    0 讨论(0)
  • 2020-12-12 18:36

    In my case nothing of these worked.

    But the final solution was very easy:

     rm -r ~/Library/Preferences/AndroidStudio[X.X]/codestyles/
    
    0 讨论(0)
提交回复
热议问题