[Android] references the jar package source code in Eclipse, androideclipse

Source: Internet
Author: User

[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.

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.