码迷,mamicode.com
首页 > 其他好文 > 详细

How to import library ?

时间:2015-02-09 17:45:51      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:

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.

How to import library ?

标签:

原文地址:http://www.cnblogs.com/tt_mc/p/4281662.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!