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 /.IntelliJIdeaXX[.AndroidStudioXX]/system/cache

    WHERE

    • 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.


你可能感兴趣的:(Java,Intellij,IDEA,配置,Java)