1. 程式人生 > >Intellij IDEA匯入專案出現Cannot load settings from file錯誤

Intellij IDEA匯入專案出現Cannot load settings from file錯誤

錯誤:

Cannot load settings from file 'C:\Users\user\.IdeaIC13\config\options\code.style.schemes.xml': java.lang.AssertionError: Unexpected content storage modification File content will be recreated

解決方法:

找到Intellij快取檔案的路徑,開啟cache資料夾刪除所有內容,再重啟Intellij軟體即可。

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.