I'm working on my android app, and now is perfectly working. How can I save the whole project so that if I make changes and want to get back to the previous state I can get everything back as it was.
For example: I get my app working and I call such state: version 1.0. To improve my app I modify the various file and get to: version 1.3. Now, I made a mess with version 1.3 and want to get back, how can I get to version 1.0?
Currently there is no direct way with which a downgrade can be done. I managed to do the downgrade by downloading Android Studio 3.0. 1 from here and then running the installer. It will prompt whether to uninstall previous version, and when you allow and proceed, it will remove 3.1 and install 3.0.
Step 1: Click on File then Click on Save All and your project will be saved. You can also use ctrl+S shortcut.
For the same purpose, a system called the Version Control System(VCS) was founded. These help you to keep and maintain versions of your code. Git
, Mercurial
are some VCS. Git
is the most widely used one. It allows more than just maintaining versions. It helps to:
Keep snapshots of code.
See changes across the snapshots(commits)
Make branches and try experimental features.
Automatically merge branches and letting you fix any conflicts.
So I strongly suggest you to learn to use Git. You can find some good tutorials here:
[Udacity course][1]
[Tutorials Point][2]
[Attlassian Git tutorial][3]
Use GIT and create branch or tag for your project version. You can check out to any previous version of project where you committed out any change or tagged. Better you check out tutorial like http://www.tutorialspoint.com/git/
Version control is the way to go. look up Git. github has awesome tutorials
Yes, VCS is the way to go but as many might have worries like I did that someone might steal your code from those repositories, the github is a public repository and thus others can access it, to have a private repo you need to pay. So, better use other services like Bitbucket that provides private repo for free.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With