How do I restore my project to an older version in Android Studio?
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.
Right click on a class file, and select "Local History". This will also work on directories.