Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: save project version as a backup

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?

like image 858
Mattia Rubini Avatar asked Oct 25 '16 10:10

Mattia Rubini


People also ask

How do I revert to an older version of Android Studio?

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.

How can I save my work in Android Studio?

Step 1: Click on File then Click on Save All and your project will be saved. You can also use ctrl+S shortcut.


4 Answers

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]
like image 112
S Praveen Kumar Avatar answered Sep 27 '22 19:09

S Praveen Kumar


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/

like image 24
Bills Avatar answered Sep 27 '22 20:09

Bills


Version control is the way to go. look up Git. github has awesome tutorials

like image 44
Manas Dadheech Avatar answered Sep 27 '22 18:09

Manas Dadheech


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.

like image 34
NKoyee Avatar answered Sep 27 '22 18:09

NKoyee