'Some contents java and xml change be null

Yesterday i got pop up which say android studio can't load my .iml file. I tried delete module.xml inside .idea folder and pop-up not appear again after that but today when i open android studio some java and xml turn be like this like this

luckily i have some backup file so i can replace that with original code but i dont want get same problem in future. My question for this

  1. Is this problem will repeat again in future if i just replace code?
  2. If this problem repeat again, any ways for solving this without reinstall android studio ? (I will consider reinstall as last option)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source