[Android] references the jar package source code in Eclipse, androideclipse
(The premise is that you have the source code of the jar package !!)
1. Make sure that the jar package already exists in the Referenced LIbraies. Otherwise, right-click the jar package and choose build path> add to build path.
2. Right-click the project and select properties, select java build path on the left, select order and export on the right tab, and adjust the android private libraries location to the bottom.
3. Select the jar package under Referenced LIbraies (Be sure not to select it from other directories), right-click and select properties, and select the source code location corresponding to the jar package as shown in the following figure.
After setting, you can associate the source code of the jar package.
Additional knowledge:
Android Dependencies displays the referenced project and dependent Project
Android Private Libraries: indicates the jar package reference placed in libs. It is considered as a Private reference.
Referenced Libraries: indicates the Referenced external jar package.
Reference: http://blog.csdn.net/fastthinking/article/details/20032513
Http://stackoverflow.com/questions/18434552/how-to-add-source-of-android-private-libraries-to-adt-eclipse
Http://stackoverflow.com/questions/20602028/difference-between-android-referenced-libraries-and-private-libraries
How to associate the jar source code in eclipse
Right-click the project and choose "build path"> "configure Build path"> "libraries"> "Expand the jar package to be associated"> "source attachment" to specify the source code path.
How can I import the source code packaged into a jar package to eclipse and view it using eclipse?
Each jar has a corresponding source code zip file, which needs to be downloaded separately.
On the libraries page of java builder path, open the jar + code that needs to be associated with the source code, select source attachment, click the edit button, and select the source code path.
For example, the source code of JDK is src.zip under the JDK installation directory, which is associated according to the above method. For third-party packages, go to the relevant official website to download the source code and associate it.