tt_mc

导航

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.

posted on 2015-02-09 15:20  tt_mc  阅读(255)  评论(0编辑  收藏  举报