Third-party packages are referenced during Android development

Source: Internet
Author: User

Questions about using third-party jar packages in Android development:


is usually packaged in a jar package, then copy to the project below the Libs package can be.

If there are two ways to import the source code:

Method One:

Click on the Project right click Properties shortcut key Alt+enter

Then select Android then select Add on the bottom right and select the jar package that needs to be imported of course the source package must be guaranteed to check the is library (check method: Right-click on the lower middle of the project-android a single box, choose to indicate that the project works as a third-party package)

Import Diagram:


Import succeeded:


Then click Apply to click OK on the line. You can use this third-party package in your project.

Note: You must ensure that the third party package and your project in the same workspace, or after the successful import, and then come in to see the time will become such as: a red fork




Method Two:

Right-click your development project, tap build path, click Configure build path and then the dialog box appears, select Projects on the right, click Add to add a third-party package to the source project such as:


Then select order and export to tick the package you just imported, and click OK to use it in the project.








Third-party packages are referenced during Android development

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.