How to get Java API sources?

As long as there is a way to clone all the repos described here , I just need only Java API files, nothing more. (Hint: traffic limitation + slow connection)

Now here is the whole git repo , but where are the simple Java API files? Or are they in a completely different place? Does anyone have an idea? I am not so expert git.

+6
source share
3 answers

After working using 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 good directory: core/java/android

 tar cjf android-java-2.2.2.tbz2 core/java/android 

And then we get a good bzip2-ed archive: android-java-2.2.2.tbz2 , only 1.8 MB;)

+2
source

I have no idea what you think "simple Java API files."

The second link is not a git repo. This is the git repository family. Each row in this table represents one git repository. The first link is for instructions on how to use the Android tools to clone all of these repositories.

If you think the “simple Java API files” are for the java.* And javax.* , they are from libcore repo .

If you think that “simple Java API files” refer to the android.* Classes, they refer to the frameworks/base repo .

Other repositories may contribute to other parts of "simple Java API files" such as Apache HttpClient.

If all you are trying to do is push the code, I recommend Google Code Search . For example, I often refer to the source code of Android, and I did not download it.

[edit] And if all you want to do is develop applications for Android, you do not need any of this; just download sdk

+10
source

If you just need to see or download a specific JAVA API file from Android, then just submit this site

http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/

it has a repo of all android releases.

0
source

Source: https://habr.com/ru/post/890306/


All Articles