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