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;