I'm still at the path of learning programming, but my apps are getting quite complicated and I want to learn how to store a snapshot of current working app version before continuing with implementing other enhancements so that I could go back to that stored version if need be? Could anyone give me a link to tutorial about it? My search only returns tips how to set app version in gradle files.
What you are looking for I believe is a source control software that will be able to control your versioning, there are plenty, I recommend: Git
Tutorials:
Tutorials Point
Tutorial for begginers by Roger Dudler
One of Git concept is being able to work offline (you can work locally on your PC).
AndroidStudio Integration:
After installing Git on your machine you can easily integrate Git with AndroidStudio (Although I prefer working from Git Bash CLI), by doing:
Go to File -> Settings -> Version Control -> Git and configure Git
Go to VCS -> Enable Version Control Integration -> select 'Git'
You should take a look at vogella
for a starter I recommend
https://www.tutorialspoint.com/git/
http://javapapers.com/android/android-studio-git-tutorial/
https://www.londonappdeveloper.com/how-to-use-git-hub-with-android-studio/
Related
I am new in using android studio I an currently trying to build the interface between the Google Glass and computer, for that i first need to debug my glass using some sample examples from Git but i am not able to clone those examples to android studio . It says "Clone Failed" "Failed to start Git process"
I don't have enough reputation to make comments, so I'll try to provide you an answer without knowing the specifics of your setup. If this answer is misleading, please comment below and I'll try to improve it.
First make sure you have the git executable installed. Then go to the menu File->Settings. Under the section Version Control->Git, fill in the Path to Git Executable field. The exact path will depend on your system and version of git installed.
I already have Github set up in Android studio.
I can commit, push and everything else.
What I can't figure out is how do create and manage Github issues with Android studio?
That's pretty easy to do.
Integrate Github (not git) server
Tools -> Tasks & Contexts -> Configure Servers
Add a github server (not gitlab) an set your repo stuff there
Work on issues
Once done, you can create, work on, close issues
Tools -> Tasks & Contexts -> Switch task (or Alt+Shift+T on windows)
You can open, mark as resolved, create branch for the issue.
If you want it closed you can include closes #123 in your commit message which will close it (this doesn't have to be from within android studio, github recognizes it as a command).
Actually, what you've got set up in Android Studio is Git, not GitHub. Git is the version control system, GitHub just hosts the repositories and essentially pretties it up for you. Issues aren't in any way actually associated with your git repository, except through GitHub and as a result, what you're trying to do isn't possible.
I am new to Android Studio and to Android Development as well. I am presently using version 1.3.1.
My question is how to efficiently make project "snapshots". - I am not absolutely sure the term of "snapshot" is good hence the quotes.
What I mean is to save the project as is at the moment and be able to make heavy changes without fearing to destroy what is already working well and also to be able to restart from this "snapshot" if it happens that the changes made break the project.
In other terms, how can I manage versions?
This can be achieved using a version control program such as git or svn, although git tends to be the industry standard tool.
You can follow a very simple online tutorial to get started quickly with the basics behind git. There are also a number of other excellent resources such as the git guide by Tower and the git book.
In regards to versioning, you can use git tag to tag specific versions (see docs)
#Create a new tag
git tag -a v1.0 -m 'Version 1.0'
#Create a new working branch 'version_2_dev' from v1.0
git checkout -b version_2_dev v1.0
You need to add the version control plug-ins like bitbucket, svn and git.
I use 2 machines for development, Windows 8 desktop and a Macbook for when I'm away from my desk. I use dropbox to sync my development files between 2 machines. This works pretty well, except for one thing: the SDK path must be updated every time (http://screencast.com/t/XKnqUjiBn)
Is there a work around of some sort for this?
Don't share the local.properties file between machines; that's the file that contains the SDK path, and as its filename indicates, it's supposed to be local to an individual machine.
I suggest that you take a look at a GIT source control (if you haven't done that previously). It is the way better way to manage projects than dropbox sync.
There are 2 very good options for you:
GitHub - free for open source projects, paid for private repositories (paid per repository)
BitBucket - free for private repos too (paid per user)
AndroidStudio (which I suggest for Android projects unless you are working with NDK) has a really good support for importing projects to GIT via GUI. So it helps you a bit if you are not familiar with console stuff. But it is easy with console too. Check out this github tutorial for beginners https://try.github.io/levels/1/challenges/1
With GIT the problem that you are trying to solve is simple just put a file name that you dont want to share into you gitignore file. You can find android preset gitignore files online on sites like gitignore.io.
Good luck.
I am new here to develop android application with android studio.
I created sample basic application, from this i got the project structure of the application with build.gradle files in each module(which is different from eclipse).
Then I successfully commit the code and push the entire project code to git repository by using Version Control System (VCS) in it.
I need to configure my project with jenkins server for continuous integration.
Can any one give me the step by step procedure, how to configure android studio project code (which is commited in git repository) with jenkins server.
So far i didn't find any clear procedure to configure android studio code with jenkins server for continuous integration.
Thanks in adavance
Unfortunately for you, this isn't a "Tutorial" site. If you have a specific issue, people will help you. But for a tutorial, google around some blogs.
Based on your description, you need to:
Configure some triggers (prolly SCM change, or timer based)
Perform GIT checkout
Perform Gradle build step
Decide where to Archive your artifacts
Do that, and when you have a specific issue, then ask a specific question