1 in an open project File-new-importmodule Select the folder in the open source project, such as the Library folder and import it.
2 file-project sructure in modules select our project file (default app)-Select dependencies-Green "+" Module dependence Select the open source project we just imported, then we can To use the imported module.
3 because the gradle version compiler tool SDK and other tools version is likely inconsistent resulting in the failure to compile properly, we need to import the open source project in the project view Build.gradle in the relevant (such as Gradle version buildtoolsversion, etc.) version This model is changed to match the compilation environment of our project.
4 the same library file conflicts, the imported module may have the same external library file as our project, causing the Dex name conflict, then the same library file in our project deleted, and in the module dependence also deleted.
Androidstudio Import Third Party open Source Library--Folder source code