Where to download the complete source code of android.jar?

空扰寡人 提交于 2019-12-25 06:27:56

问题


I downloaded the repository: git://android.git.kernel.org/platform/frameworks/base.git

But I found it's not enough. For example, most of the source code for the packages like java., javax. were not there.

What else repository do I need to download?


回答1:


First, that's not really the source code to android.jar. The android.jar on your development machine is a JAR of stubs for the non-hidden classes and methods that form the basis of the SDK.

Second, downloading one Git repository usually isn't particularly useful if you want to work with the code. You are going to need all of the repositories, as is documented on the Android Open Source Project site.

Some of what you are seeking are in the libcore repository. Other classes are in other repositories, presumably.



来源:https://stackoverflow.com/questions/6201469/where-to-download-the-complete-source-code-of-android-jar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!