How to import library ?
Android Studio:
- Download or git the library. (for example: the library folder named ActionBarSherlock)
- Create a folder named libraries in your root directory of project.
- Copy & Paste the library into libraries.
-
On the root of your project, modify setting.gradle (if not exist, create it), add this library.
include(‘:libraries:ActionBarSherlock’)
-
Edit your project’s build.gradle, tell gradle to compile your added library,add below code in the dependencies tag.
compile project(:libraries:ActionBarSherlock)
-
Run gradle clean && gradle assemble on your root project.