Reputation: 3965
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? :(
Upvotes: 24
Views: 30125
Reputation: 1505
In my case I was looking for the file named 'landing_page222.java' which I deleted one day back.
Hopefully it will be available in Instance
Upvotes: 71
Reputation: 503
Im late but this works. Go to the folder where u want to recover. right-click, local history. select ones you deleted and click revert. :)
Upvotes: 2
Reputation: 464
Go to View > Recent Changes > Click on the file you want to recover > Click "Revert"
Upvotes: 10
Reputation: 406
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.
Upvotes: 12
Reputation: 1783
You can try:
Upvotes: 36