about how to correctly add a third-party jar package to an Android project

Source: Internet
Author: User
1. Download third-party jar packages
2, create a libs directory under the Android project (name is not fixed, you can take other names completely)
3. Right-click on the Libs directory in Eclipse, select Import, General, File System, select the directory where the jar package is located, and select the jar package in this directory
Note: You have successfully added the jar package to the project until this step (but not yet recognized by Android virtual machine), so if you use the class in the Jar package, the compilation will fail.
4. Right-click on the project name and select Build path, Configure build path, select the Library tab. Click Add jars on the right to select the jar package under the Libs directory
Note: This step helps the Android virtual machine to process the previously added jar package
Theoretically this step should be able to use the normal, but if you go to this step debugging will be wrong, you can try right-click on the Libs directory, choose Build path–> Configure as source folder, Basically, you can use the third-party jar package as usual to continue your Android development journey.

about how to correctly add a third-party jar package to an Android project

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.