首页 > 其他 > 详细

How to import library ?

时间:2015-02-09 17:44:54      阅读:246      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!