Android Studio References library with import jar

Source: Internet
Author: User

Android Studio is a very powerful development tool during the development of Android projects. How powerful it is, you know it.

In this article I will describe studio referencing the library open source project and importing the Jar method.

I. Citation of the Library

1: Select your project, click the navigation bar file-->new-->import Module ...

Follow the prompts to import your library


Expand your project now to discover the Library you imported (I'm importing ios_dialog_library)

The work is not over yet.


2: Select your project again, click File-->project Structure ...

Click the app under Module, then click Dependencies.

Click on the right "+" and select module dependency

Select the library you want to import

Click OK at the prompt, and you can refer to it after the compilation is complete.




Second, the reference jar, the method is relatively simple

1: Copy your downloaded jar file directly under the Project app-->libs.


2: Select Jar file Right click, select Add as Library ... Follow the prompts to click OK.



Note: Android studio will automatically compile after you import the library or jar file, without requiring you to manually add the relevant code for the package.

OK, until this preparation is over, start your stack-up tour ....


Good luck!

Write by Jimmy.li












Android Studio References library with import jar

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.