gpt4 book ai didi

android - 如何确定特定 android.jar 文件的修订版

转载 作者:行者123 更新时间:2023-11-30 04:30:13 24 4
gpt4 key购买 nike

如何确定android.jar文件的版本。
例如,给定 android-sdk/platforms/android-8/android.jar
我想通过导出其修订来检索其内容的源代码并将其作为 提供-b repo init 命令的选项参数(根据 http://source.android.com/source/downloading.html )

实际上,这个问题可以换个说法:
我如何检索特定 android.jar 的源代码?
除了使用 repo 之外,还有其他选择吗?我只对 Java 源文件感兴趣。

最佳答案

您无需使用 repo 和收集 android.jar 的源代码,因为其他人已经这样做了。网络上有很多站点提供 android.jar 文件的打包源。我个人更喜欢 adt-addons project 的源码包:

Android Sources

This plugin helps you to add source to android libraries in Eclipse.

In ADT >=8.0.0 you can add Android sources to Android container for all your project with installing the Android source feature using http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/ update site After installing the Android source feature all your existing projects as well as new created projects which is targeted for Android 2.3.4, 2.3, 2.2, 2.1, 2.0.1, 1.6 and 1.5 will have attached the source jar.

The plugin includes sources for the following API levels:

  • 10 - Android 2.3.4
  • 9 - Android 2.3
  • 8 - Android 2.2
  • 7 - Android 2.1
  • 6 - Android 2.0.1
  • 4 - Android 1.6
  • 3 - Android 1.5

The plugin is about 170 MB size.

关于android - 如何确定特定 android.jar 文件的修订版,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7859691/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com