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:
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! :)
on a windows 8.1, I found File > Invalidate Caches/Restart did the trick
On a Mac, I found File > Invalidate Caches/Restart did the trick.
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.
I just deleted the workspace.xml after closing the studio and started again. It works fine.
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.