问题
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