Android Studio Corrupted .java file after improper shutdown

后端 未结 9 684
梦谈多话
梦谈多话 2020-12-30 05:01

I hibernated my laptop when Android Studio was running and found later that the laptop had been shut down. Now one of my source files is appearing empty in Android Studio an

9条回答
  •  鱼传尺愫
    2020-12-30 05:29

    See if Android Studio kept a version in local history.

    Go to your java file in Android Studio, and navigate to

    VCS -> Local History -> See History
    

    Also, start using version control, like git.

提交回复
热议问题