How do I build these libraries from GitHub

2019-06-19 00:59发布

问题:

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.