Reference third-party packages during android development, android third-party

Source: Internet
Author: User

Reference third-party packages during android development, android third-party

About how to use third-party jar packages in android development:


Generally, it is a packaged jar package. Copy It To The libs package under the project.

If there are two ways to import the source code:

Method 1:

Right-click the project and click properties shortcut Alt + Enter.

Select android, select add in the lower right corner, and then select the jar package to be imported. Of course, the source package must be checked with is library (Check Method: Right-click Project-there is a single repository in the middle of android, if this option is selected, the project is used as a third-party package)

Import diagram:


Imported successfully:


Click Apply and click OK. This third-party package can be used in the project.

Note: Make sure that the third-party package and your project are in the same workspace. Otherwise, after the import is successful, it will become a Red Cross.




Method 2:

Right-click your development project, click build path, click configure build path, and then the dialog box appears. select projects on the right, and click add to add the source code project of the third-party package, as shown in:


Select Order and export, select the package you just imported, and click OK to use it in the 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.