How do I build these libraries from GitHub

别说谁变了你拦得住时间么 提交于 2019-12-08 19:40:16

问题


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.

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.

Any help would be greatly appreciated.


回答1:


Easiest way is:

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

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

  3. Refresh project in Eclipse.

  4. Goto project properties - Android and select "Is Library"

  5. Clean unnecessary stuff and build.

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

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.



来源:https://stackoverflow.com/questions/18473893/how-do-i-build-these-libraries-from-github

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!