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.