You don't need to reinstall Android Studio: close it, and delete the folder .AndroidStudioX.Y
(X and Y depends on your Android studio version) in the user folder.
The answer is old, but I have the same problem today with Android Studio 3.3.2. I give my answer with the hope it can help other developers. In a random way, Android studio cannot open some files. In the first instance, I thought that the files were corrupted. After opening the same file with an external editor I realized that is not true.
In the above example, the .iml
file cannot be read by Android Studio. I open the same file with Notepad++ and I luckily saw that file was good.