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.