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.