Android adt20 + jar source code Association Method

Source: Internet
Author: User

Since Android adt20 and later versions, ADT will help us automatically import third-party jar files under the libs directory of the project, which provides convenience for importing jar files to the project, the method associated with the jar package and source code package has also been modified;

Now I want to write down the method for associating the jar package with the source package. It's actually quite simple. If I don't know it, it's actually quite difficult (I didn't know it at the beginning, I have consulted many people to understand it !);

Steps:

1. First, copy the jar package to be imported and the corresponding source code package to the project libs directory;

2. Create a properties file with the same name as the jar package in the libs directory. The content is as follows:

SRC: file name of the source package

Eg: jar package: Test. jar; corresponding source package: test_source.jar;

Properties file: Test. Jar. properties;

Content of the test. Jar. properties file:

SRC: test_source.jar

OK. Restart eclipse;

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.