android - 如何获取 Java API 源代码?

标签 android git repository android-source git-clone

<分区>

虽然似乎有办法clone the whole repo , described here ,我只需要 Java API 文件,仅此而已。 (提示:流量限制+慢速连接)

现在,here is the whole git repo ,但是纯 Java API 文件在哪里?或者他们在一个完全不同的位置?有人的想法? 我不是 git 专家。

最佳答案

我不知道您认为“纯 Java API 文件”是什么。

第二个链接不是 git 仓库。它是一个 git 存储库家族。该表中的每一行都是一个 git 存储库。第一个链接是有关如何使用 Android 提供的工具克隆所有这些存储库的说明。

如果您认为“纯 Java API 文件”是指 java.*javax.* 类,它们来自 the libcore repo .

如果您认为“纯 Java API 文件”指的是 android.* 类,它们来自 the frameworks/base repo .

其他存储库可能贡献“普通 Java API 文件”的其他部分,例如 Apache HttpClient。

如果您只想浏览代码,我推荐 Google Code Search .例如,我经常引用Android源代码,但我没有下载。

[编辑] 如果您只想开发 android 应用程序,则不需要这些;只是 download the SDK

关于android - 如何获取 Java API 源代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6318929/

相关文章:

java - 为什么我的 HTC magic 会出现 OutOfMemoryError 异常?

entity-framework - 如何使用 EF 更新 Controller 中的对象?

github 工作流程-致命的 : not a git repository (or any of the parent directories): . git

java - 我的 UI 不会因数据更改而更新

带有 BaseAdapter 拖放排序的 Android ListView

ios - Git 大文件存储 - 远程 : fatal: pack exceeds maximum allowed size

git - 将 git 包创建输出重定向到日志文件

git - git 是否将无法访问的对象推送到远程

c# - 如何在最小起订量存储库中执行表达式?

android - 在 MVP Koin 中注入(inject) Activity 对象