Reputation: 517
I'm not using subversion or something like this, only Android Studio. I messed up some features and I need to get back to an older version of the project
How do I do it?
Upvotes: 25
Views: 40989
Reputation: 1082
Switch to Project
in the left part of Android Studio, right-click the application name
on top, click Local History
, click Show History
.
Then find the revision you want back, right click it and choose Revert
. Your whole project will be reverted to this state.
Another solution here suggested Switch to Android in the left menu before reverting but that will not revert the entire project. I failed using that solution.
Upvotes: 1
Reputation: 8231
Right click on a class file, and select "Local History". This will also work on directories.
Upvotes: 41
Reputation: 6797
Switch view to Android
in the left part of the Android Studio, right-click the app
node, Local History
, Show History
. Then find the revision you want back, right click it and choose Revert
. Your whole project will be reverted to this state.
Upvotes: 5