Github issues integration with android studio - android

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.

Related

How to version an Android app?

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/

Compile Email application from AOSP

I would like to add some features to the AOSP Email application which is not supported anymore. So I cloned the repository here (which is a Eclipse project) and migrated it to a Gradle project in Android Studio. But after that it comes to thousend Java errors, missing resources and so on...
So has Google really a not working repo there? Do I maybe need some other repos from AOSP? As it is for now I can't work with it anymore...
So I cloned the repository here (which is a Eclipse project) and migrated it to a Gradle project in Android Studio.
None of the AOSP projects are designed to be used this way. They are designed to be built as part of a firmware build.
If your objective is to contribute changes back to the AOSP, you will need to follow their instructions for using their source code.
If your objective was to create your own email app, you may be better served starting with some base that is buildable as a regular Android app (e.g., K-9 Mail). Otherwise, you are going to need to fix all of those problems, as they reference things that are not going to be available to your app project via the Android SDK.

Continuous integration with jenkins using android studio

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

How to add Android-Project to GitHub [duplicate]

This question already has answers here:
How do you synchronise projects to GitHub with Android Studio?
(13 answers)
Closed 5 years ago.
I'm using Android Studio to code my apps. Now I want to work on 2 PC's and thought about using a Cloud-Service. I decided to use GitHub, but I can't find a way to synchronize my GitHub account with my Android Studio project...
Can anyone explain this to me ?
Best way to do this is probably through the good ol' command line. First, make sure you have git installed and in your path. You can get instructions from here.
Next, go to GitHub and create a new repository with a title and such. Instructions on that here. Don't worry about creating your first commit, we're going to do that on your local machine.
Now for the fun part.
Copy the repo link of your choice (I prefer ssh, but it depends on how far you went with the set up part) and head to the terminal.
cd ~/project-path-here
git init
git add .
git commit -am "initial commit"
git remote add origin <your link>
git push -u origin master
If all has gone well, you can reload the github page and see your new push.
On your other computer, you'll be able to clone down the repo you created.
cd ~/project-path-here
git clone <your link>
You can then use git pull and git push to retrieve and send changes to the server.
You can also look into Github's desktop application if you're on Windows or Mac for a simpler time, but I find these lack some more advanced features of git.
EDIT: To register your new git repo with Android Studio, Intellij, RubyMine, etc., go to the project settings (File->Settings), search for version control, and specify that your project is using git for version control. Here for more information on that. Once that is enabled, the VCS drop down will have more features. The ones to look at are Commit Changes (git commit and push) and Update Project (git pull).
Under the VCS tab in your Studio, there's on option to publish the project to Github. Will ask for your credentials, then you're good to go to push your code.
Just getting into Android app dev and I thought I might mention here that I think that we should gitignore the build folder. It's huge and it doesn't need to be repo'd
[Edit] I'm referring to the app/build folder. And hey I see it's not included in the Android Studio .gitignore

Android Git: Making one project and doing changes

I am working on an android project that have later to be translated to many other languages and some changes have to do in design.
Now I want to know is there any way to make one project and keep it on git and later having changes should change the git project accordingly. So is it possible to create multiple apps for Android project. If yes, is it possible with Eclipse and git or someone has any other idea?
For the time being I am saving project in local directory and copy that project to make changes for next app.
This sounds that you should give git-subtrees a try. There, you create one repo with your base project and then import this repo into your specific app project. If you want to propagate your changes to the API, you push the changes to the base repo. We use this for component development.
But from my experience: do not use eclipse for working with git. It has some major drawbacks and might corrupt the repos. Use the CLI or another tool.

Categories

Resources