Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
While there seems to be a way to clone the whole repo, described here, I just need just the Java API files, nothing more. (Hint: traffic limit + slow connection)
Now, here is the whole git repo, but where are the plain Java API files? Or are they at a complete different location? Someone an idea? I'm not that much a git expert.
I have no idea what you think "the plain Java API files" are.
The second link is not a git repo. It is a family of git repositories. Each row in that table is one git repo. The first link is for instructions on how to use Android-supplied tools to clone all of those repositories.
If you think "the plain Java API files" refer to the java.* and javax.* classes, they are from the libcore repo.
If you think "the plain Java API files" refer to android.* classes, they are from the frameworks/base repo.
Other repos may be contribute other portions of "the plain Java API files", such as Apache HttpClient.
If all you are trying to do is poke through the code, I recommend Google Code Search. For example, I refer to the Android source code frequently, and I don't have it downloaded.
[Edit]
And if all you want to do is develop android applications, you don't need any of this; just download the SDK
Following worked, with the help of this question:
git clone git://android.git.kernel.org/platform/frameworks/base.git
cd base
git tag -l
git checkout android-2.2.2_r1
And then we get a nice directory: core/java/android
tar cjf android-java-2.2.2.tbz2 core/java/android
And then we get a nice bzip2-ed archive: android-java-2.2.2.tbz2, just 1.8MB ;)
If u just need to see or download a specific JAVA API file from android.. then just refer this site
http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/
this is has repo of all android release.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am having trouble in using git on android studio. I know there may be many related questions asked on this topic But I could not find any relevant answer.
I can use git normally but with android studio i am facing many problems. I am working on a project with my friend. The main project is on his repository. I have forked his repo. And cloned the project on my machine. Then using imported the project on my Android Studio. Till here things are fine but after this everything messes up when i try to use git.
Do i have to use git in the terminal inside android studio itself, or in normal terminal in file manager?
Can anyone give me a proper guide of how to collaborate on Android Studio using Git.
You can use git just as you wish... Git is a part of the project and hence does not depend on the Git client.
For example, I mostly use SourceTree as my main Git client.
But when I create a new repo, or push an existing project into a new repo, I prefer to use the command line.
Now when it comes to merging, I really appreciate the AndroidStudio merging tool, So I begin my merge with SourceTree and solve conflicts with Android Studio ^^
The best tool is the one you are comfortable with, however note that they are just front-end for the git (command-line) tool.
When you open a Git project in Android Studio, detects by the itself that your project is a Git project.
You will be able to see in the bottom of Android Studio something like this:
You can commit using Control + K
If you can't see it, maybe your git configuration/project is wrong.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Google introduced repo to manage Android source code. As is said in the document, repo is meant to make it easier to work with Android. I can't see why from the documents at
https://source.android.com/source/developing.html
From what I am seeing in the document, repo just create synonyms from git commands. So how repo makes it easier to work with Android?
I'm assuming you have already read:
Repo is a repository management tool that we built on top of Git. Repo
unifies the many Git repositories when necessary, does the uploads to
our revision control system, and automates parts of the Android
development workflow. Repo is not meant to replace Git, only to make
it easier to work with Git in the context of Android. The repo command
is an executable Python script that you can put anywhere in your path.
In working with the Android source files, you will use Repo for
across-network operations. For example, with a single Repo command you
can download files from multiple repositories into your local working
directory.
Simply put, it meant for managing multiple git repositories.
This is to make the development process more modular as you can have each feature developed in its own repository. That way, each team can contribute to their own separate repository. Each of the repositories often come together to create a larger project.
Repo allows you to pull specific commit points from each git repository to create a collective snapshot for the larger project.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
It would be awesome if somebody had a link to a list of Android source jars I could download, so I can attach the source code to Android in IntelliJ. I don't have time to be mucking around all day doing this (why reinvent the wheel?), I have apps to build!
I know Eclipse has a plugin that does this, but I don't like Eclipse, I'm using IntelliJ.
PS - I need Honeycomb+
Since there aren't full sources included for most versions of the SDK, you have a few options:
Grab the AOSP and build source jars yourself. Here is a blog post that talks about ways of accomplishing this.
Look for pre-built JARs that people have hosted. This is how the Eclipse plugin you mentioned works, and here is a link to another site that has the JARs up to 2.3.3; this is where I grabbed the JARs I have attached as sources in IntelliJ.
You may have noticed that you can download the sources JARs for 4.x directly from the SDK Manager now, so really 3.x is the only set missing pre-built JARs.
HTH
The best way to get the source code is by going to http://source.android.com/ and following the instructions on their site which will download an android.jar file and a lot of other components of the Android source code. The source code does take up a lot of space and using grepcode is a lot simpler.
you can find source code online and as a jar file here..
GrepCode: android - Java Project - Source Code
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I want a command line tool that works in the following situation:
1) A computer with JDK and Android SDK installed (with the target Android platform).
2) An Android project created using eclipse.
And give me the following output:
1) The signed APK of the given eclipse Android project.
How do I accomplish the above by writing a Java program (By kicking off Ant using the Java Runtime class)? I want to automate the build process, how do I do that?
Thanks.
I've used ant to do this and we use Jenkins for Continuous Integration. I've written a post on how to automate this.
http://www.multunus.com/2011/09/continuous-delivery-for-android-apps-part-1/
I use Maven with the Android plugin. It works well.
See http://simpligility.github.io/android-maven-plugin/.
The Android build process is fairly complex: quite a few tools are invoked one after another: javac to compile, then dx to convert to dex, then aapt to package (I'm sure missing a few). You can run Ant in debug mode to see the exact sequence (it is also documented, somewhere...).
So you can either:
Bundle the Ant jars with your app and invoke Ant programatically
Write a Java 'script' that invokes the tools in the correct order
Write a simple shell script/batch file and be done with it.
I am currently using Fastlane to automate beta and production releases. Fastlane is largely written in Ruby and you can customize releases based on your internal processes. You can watch this Droidcon '16 video to get started.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
My app code is starting to get unmanageable and I want to start source control, primarily because I need to branch my code.
What are some good systems that you have used in the past and what would you recommend to me.
Requirements:
Must be free
Must integrate with eclipse
Must work well with android development plugin
SVN (Subversion) is very good and there is support for an Eclipse plug-in called Subclipse.
Besides all voting for git I'll vote for the following:
If you are willing to use eclipse for android development use SVN or mercurial, because:
Both have much better support from eclipse (I belive EGit is still in beta and no public releases are available yet)
They are both supported by google code that is excellent source control for open source
They both work on all major systems (no offence but git on windows even with MinGW is sometimes creepy)
If you are not using eclipse:
If you are not using windows for development choose Git because:
android uses it
it is awesome
If you do use windows choose:
Git if you are not afraid of console
Mercurial otherwise
I vote for Git
You can set up a project at code.google.com, and use a source code repository provided by them. I think they offer Subversion and Mercurial as source control systems, and I use Subversion.
After you've got that set up, you can just use Subclipse to connect to the repository.
Git and SVN are both good choices, although I'd give SVN an edge since it's probably a bit easier to learn if you've never used a source control system before. As far as Eclipse integration goes, you'd be hard pressed to find a popular source control system that doesn't have an Eclipse plugin.
I would also vote for Git. I have little experience with Git and SVN, and I enjoyed Git more. It's fast, it's easy, i didn't have any problems with this. There's good Git repository service github.com, but setting up your own repository is very easy. But you can have some trouble with integrating it with Eclipse :(
If you are not working on a team and you just need version control for yourself, SourceGear Vault is free for a single user and they have a nice Eclipse plug-in.
I use it for Android development and it works like a charm.
If you're using a Mac, try out Versions. It's a tool for managing SVN repositories and working copies, and it's amazing (No... I don't work for them ;-) )They allow you to create repositories on your own computer, or setup a free one at BeanStalk.com
I'll put in another vote for subversion. It should be easier to learn than git, and will easily provide all you need.
As for the eclipse integration, you can choose between two different plugins: Subclipse or subversive. You can find lots of interesting debates on the net about which is the better one. I'm personally using subversive because it's a bit more intelligent about trunk/branches/tags handling in svn.
Find EGit Releases here : http://www.eclipse.org/egit/download/
Since Mar 2010 we did a release every 3 months, current release is 0.10.1
Next release is planned for end of Feb 2011 with Helios SR2.
Subversive plugin for eclipse.