Android Studio Import jar package and library package

Source: Internet
Author: User

The steps to import the jar package and so package in Android studio are as follows:

1, in the same level of SRC directory to build a Libs folder

2. Copy the jar package or so package to the new Libs folder

3, Jar package, right click to select the Add as Library

4, if it is so package, find with the src sibling directory build.gradle, add the following red information, and then Build->rebuild project can

The steps to import the library in Android studio are as follows:

1. Create a Libraries folder under the project root directory to move the library project to the libraries directory you want to use

2, right-click the project name select Open Module setting, in the left panel select modules, in the middle of the panel above A + number, select you copy the project, and then in the module will appear this project

3, then select the main project in the Middle panel, and then on the right panel to select Denpendecies, on the right side of the panel appears a plus number, click the + sign, select the third module denpendecy you want to depend on the project

  

4. Pop up a dialog box to display your library project, select it, click OK, and then click Apply in the project structure panel

Android Studio Import jar package and library package

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.