migea
migea

Reputation: 517

How do I restore my project to an older version in Android Studio?

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

Answers (3)

John T
John T

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

PPartisan
PPartisan

Reputation: 8231

Right click on a class file, and select "Local History". This will also work on directories.

Show Local History on App module directory

Upvotes: 41

Neurotransmitter
Neurotransmitter

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

Related Questions