Import a project to another project.

Source: Internet
Author: User

Import a project to another project.
1. Import as lib Library

First, find the project. properties file in the project to be imported, and set android. library = true;

In an existing project, right-click ---- properties ---- Android and click Add in the library tab below,


Select the database to be imported.


2. Import the project as a jar package to the Project

Right-click the project to Export ---- Export --- JAVA---JAR file


Select only the src folder and assets folder. If the assets folder has nothing to do with it. If AIDL technology is used, you also need to import the gen folder.

Select the export location and export it.

Note that if the project already has a jar package, you cannot package the jar package in the libs folder,

Therefore, you still need to give the jar package to others separately.


Find the project to import the jar package, right-click ---- Build Path --- Add External Achives.

Then select the jar package to be imported.

Related Article

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.