下载具体的Android源代码
我只是想知道如何下载特定版本的Android源代码。我已经尝试过以下命令
repo init -u https://android.googlesource.com/platform/manifest
repo sync
并且我能够下载姜饼2.3.4。不过,我还想下载 2.3.3。有谁可以告诉我正确的命令吗?有没有办法下载没有版本文件的源代码,因为我没有更改源代码和上传的计划?
I would just like to know how to download specific version of Android Source Code. I have already tried the following command
repo init -u https://android.googlesource.com/platform/manifest
repo sync
and I was able to download gingerbread 2.3.4. However, I would also like to download 2.3.3. Is there anyone who can tell me the proper command? Is there also a way to the download the source code without version files because I have no plans of changing the source code and uploading?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以从
http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1">http:// /grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1
还提供其他版本。你可以在这个网站上搜索它们。
You could download the source from
http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1
Other versions are also available. You could search them in this site.
我能够使用以下命令下载 2.3.3:
感谢您的帮助。
I was able to download 2.3.3 by using the these commands:
Thanks for your help.
尽管这个问题已经得到解答,但没有一个答案对我有用。我花了一段时间才弄清楚这一点,所以我想我会分享答案,因为它可能会减轻某人的痛苦。
要下载源代码,请转到 github 镜像,您可以下载一个 ZIP(请参见屏幕截图左侧的“下载 ZIP”按钮)并选择您想要的版本的标签。请参阅此屏幕截图。
Although this question has been answered, none of the answers work for me. It took me a while to figure this out, so I thought I would share the answer as it may save someone some pain.
To download the source code go to the github mirror, you can download a ZIP (see the left of the screenshot the "Download ZIP" button) and select the tag of the version you want. See this screen shot.
https://android.googlesource.com/platform/manifest 中没有 android-2.3.4_r1 标记 存储库。
例如,https://android.googlesource.com/platform/dalvik 存储库具有 android -2.3.4_r1 标签。您可以在 https://android.googlesource.com/platform/dalvik 上看到该标签/+参考。
综上所述,android-2.3.4_r1标签被标记在android存储库的一部分中。
如果您在 dalvik 上检查 android-2.3.4_r1 标记源代码,请尝试以下命令。
There is not the android-2.3.4_r1 tag in https://android.googlesource.com/platform/manifest repository.
For example, https://android.googlesource.com/platform/dalvik repository has the android-2.3.4_r1 tag. You are able to see that tag on https://android.googlesource.com/platform/dalvik/+refs.
To sum up, the android-2.3.4_r1 tag is tagged in a part of android repositories.
If you check the android-2.3.4_r1 tagging source code on dalvik, try this commands as below.