Search for "android Eclipse" on GoogleSource code"The result is not suitable, because Google's eclipse Android development plug-in has been updated to ADT 8.0.1. The corresponding Lib is associated with the Java source.CodeThe method has also changed.
Follow these steps to obtain the Java source code of Android and associate it with Eclipse:
1. First download the android SDK Installation File: http://dl.google.com/android/android-sdk_r08-windows.zip
Decompress the package to: e: \ Java \ Android-SDK-Windows, run the SDK manager.exe in the directory, and download the API packages of different Android versions.
2. Download or install the Eclipse plug-in ADT online,
Installation Package address: http://dl.google.com/android/ADT-8.0.1.zip
Online installation address: https://dl-ssl.google.com/android/eclipse/
Source: ttp: // developer.android.com/sdk/eclipse-adt.html
2. After the ADT plug-in is installed, download the Java source code compressed package of Android 2.3 (gingerbread) that I have packaged:
: Http://lizongbo.googlecode.com/f... erbread_w.rc.zip
Source: http://code.google.com/p/lizongbo/downloads/list
Copy the downloaded file to E: \ Java \ Android \ javasrc.
3. After downloading the android Java source code compressed package, set the SDK configuration in Eclipse:
The operation procedure is as follows: Main Menu-> window-> preferences-> Android, SDK location is set to: e: \ Java \ Android-SDK-windows, click Apply in the lower-right corner.
4. Start to associate the source code of Android. Create an android project in eclipse, select the project, choose Project> Properties> Android, and select Android 2.3 in Project Build target.
Click "Java build path" on the left, switch to the libraries panel, expand the Lib android2.3, and click android. jar source attachment, and click Edit. in the dialog box, click "external file", select E:/Java/Android/javasrc/android_gingerbread_javasrc.zip, and click OK to confirm. In this way, the Java code of Android is associated.
5. in the same project, select the project, Main Menu-> Project-> properties-> Android, and android1.5, android1.6, android2.01, android2.1-update1, and android2.2 for the Project Build target, repeat the settings in Step 4 above.
in the future, press CTRL in any android project and click the Java class name to browse the corresponding Java source code.
the source code of each Android version is:
android1.5 android_cupcake_javasrc.zip
release
android2.2 android_froyo_javasrc.zip
release