0
Is there any way I can get my code back to the way it was before I did the wrong thing in android studio? Apparently I deleted my code and only Gradle script is there. Is there any way I can recover it?
0
Is there any way I can get my code back to the way it was before I did the wrong thing in android studio? Apparently I deleted my code and only Gradle script is there. Is there any way I can recover it?
2
If you don’t have a history through Local History you won’t be able to recover.
I recommend you start using some code versioning tool to keep a history of your work and can recover what is done.
One of the most famous tools is Git. Through it you can keep a history of all the changes made, return to some specific version and also work in parallel with another developer in the same code if applicable.
1
Open your code in the editor (main screen), right click, Local History, Show History. There you can check the latest local modifications.
Apparently I deleted my code and there’s only Gradle script. Is there any way I can get it back? @Leandro Pincini
If you have any backup, yes, otherwise no.
Thanks people!
Browser other questions tagged android android-studio
You are not signed in. Login or sign up in order to post.
I don’t think so, but so it doesn’t happen again start studying versioning.
– rubStackOverflow
There might be a local version of it...
– Jorge B.