Fix Android Studio Corrupted Project Workspace Settings

后端 未结 18 2729
感情败类
感情败类 2020-12-13 12:18

I had this problem for a while and was able to solve it myself.

If in opening your project in Android Studio and something similar to this error message pops up:

相关标签:
18条回答
  • 2020-12-13 12:36

    It probably means your project workspace settings file is corrupted by whatever reason and Android Studio could not read it. Mine is probably because of BSOD, because Windows.

    To solve the error, just delete the workspace.xml as specified in the error message. It is ok to delete it since you probably already lost all your custom workspace settings when the file got corrupted and you will never be able to save new workspace settings unless you fix the corrupted file. After deleting it, the next time you open your project in Android Studio, it will try to look for the workspace file, and if it can't find it, it will just create a new valid one.

    I hope this helps! :)

    0 讨论(0)
  • 2020-12-13 12:39

    on a windows 8.1, I found File > Invalidate Caches/Restart did the trick

    0 讨论(0)
  • 2020-12-13 12:40

    On a Mac, I found File > Invalidate Caches/Restart did the trick.

    0 讨论(0)
  • 2020-12-13 12:41

    I would like to suggest restart Android studio File > invalidate caches and restart... > invalidate caches and restart option before deleting workspace.xml

    if restarting android studio fail to solve your problem, kindly run check disk from disk properties because I notice that this error is raise due to file indexing / file system error or sometime permission denied by OS.

    Just Delete idea folder ..

    Thank you.

    0 讨论(0)
  • 2020-12-13 12:41

    I just deleted the workspace.xml after closing the studio and started again. It works fine.

    0 讨论(0)
  • 2020-12-13 12:41

    Since for me didn't worked to delete the file i just override the actual workspace.xml with the one i had on backup directory of my project. Now it works.

    0 讨论(0)
提交回复
热议问题