How to add a project as a library (for non-gradle) in Android Studio)

Source: Internet
Author: User

How to add a project as a library (for non-gradle) in Android Studio)

This article focuses on non-gradle build projects. There are some differences in gradle build. It is very easy to reference other projects as the library of this project in Eclipse, but it is a little complicated in Android Studio. So how to reference other projects as the library of this project? First, you need to import the project you want to reference as a module. How to Import module, read this article: How to import module in Android Studio (for non-gradle)

After the project is imported into a module, the specific operations are shown in the figure:

Similarly, open the Project structure, click the module you want to use as the library, then click android, and tick it in front of the Library module on the right border.


Select the module you want to reference, such as the button in the red box.


In the pop-up dialog box, select the Library module you want to reference. (several modules depend on the number of modules you set to Lirary module)

Click OK. You can see that the Library module you introduced is displayed in the Export box. Select the Library module, and then apply and OK. <Strong? Http: www.bkjia.com kf ware vc "target =" _ blank "class =" keylink "> VcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20141011/20141011083441138.jpg" alt = "">

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.