View the android SDK source code in eclipse

Source: Internet
Author: User

1. Download the source code of the android. Jar version.

Http://git.source.android.com /? P = platform/frameworks/base. Git; A = snapshot; H = android-2.3.1_r1; Sf = tgz

Google's Android SDK contains an android. jar file containing all open APIs of Android. At the same time, Google also provides an Eclipse plug-in that can easily start development. However, there is no file similar to androidsrc. jar, so when we try to view the android SDK source code in eclipse, we will get the following page:

Google has released all the android source code, which is very large. To view the android source code in eclipse, you need to go to the http://source.android.com/(domestic needs), get source that page according to instructions step by step to get everything through git. It is worth taking a night to do this, because it is very helpful to understand how the SDK works if you can view the source code at any time.

Link to eclipse

Now that we have the source code, we should be able to tell eclipse how to find it. Right-click Android. jar -- properties, but the following information is found:

Well... the general idea is that the current class path settings belong to the 'android library 'and cannot be modified by users. Okay, you have to check the ADT source code to see if you can find a solution.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.