如何建立从GitHub这些库 [英] How do I build these libraries from GitHub

查看:158
本文介绍了如何建立从GitHub这些库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多的麻烦搞清楚如何构建展柜查看库一罐,这样我可以导入它变成我的申请。

I'm having a lot of trouble figuring out how to build a jar of the Showcase View library so that I can import it into my application.

我已经找遍了所有围绕但它不能找到一个过程。我试图导入到Eclipse中,但我不能让它在那里,因为它不是一个项目,我不知道从源代码创建什么类型的项目。

I've searched all around but can't find a process for it. I tried importing into Eclipse but I can't get it in there since it isn't a project and I'm not sure what type of project to create from source with.

任何帮助将大大AP preciated。

Any help would be greatly appreciated.

推荐答案

最简单方法是:


  1. 创建Eclipse工作空间空的Andr​​oid应用程序项目。

  1. Create an empty Android Application project in your Eclipse workspace.

复制文件从github上新项目的基础文件夹的ShowcaseView /库/文件夹中。

Copy files in ShowcaseView/library/ folder of github to your new project base folder.

在Eclipse刷新项目。

Refresh project in Eclipse.

转到项目属性 - Android和选择是库

Goto project properties - Android and select "Is Library"

清理不必要的东西和建设。

Clean unnecessary stuff and build.

这应该准备添加为您的应用程序的依赖关系。

It should be ready to add as dependency of your app.

另外,您可以选择其他库项目.project文件,并将其复制这个库文件夹内,编辑它以匹配新的项目名称,等...然后在Eclipse中导入。但是,这是更多的铁杆,如果你不知道自己在做什么。

Alternatively you can pick another library project .project file and copy it inside this library folder, edit it to match your new project name, etc... And then import in Eclipse. But this is more hardcore if you don't know what you're doing.

这篇关于如何建立从GitHub这些库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆