Recovering files deleted by Android studio?

和自甴很熟 提交于 2020-05-12 03:19:39

问题


I'm working on an app at the moment, and one of the final steps was to get it built and signed in Android studio.

Unfortunately I was having some problems, and one of the recommended solutions was to remove the project and start again, however when I did this it took all of my files with it, and they're not in the trash (OSX) either.

Is there anyway to recover these files, or are they lost forever? :(


回答1:


You can try:

  • looking for those files in the file system (perhaps they are still in your Android Studio projects folder)
  • looking in your OS's temp folder
  • using Android Studio's history feature (right-click on the Project tab > Local History > Show history)



回答2:


Click whereever you want in the left frame (for example "drawable" file is ok) and then press CTRL+z. You are going to see "Undo delete popup" window.

And as you understand, when you press CTRL+z in Android Studio, which (XML or Java) file is active, you will undo the action on that tab. So, if you click any file on the left side and press the CTRL+z combination, you will undo the action at the file structure.



来源:https://stackoverflow.com/questions/35895591/recovering-files-deleted-by-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!