user3425988
user3425988

Reputation: 5

transform library project in jar (android)

I need to import into my Eclipse project an external library that is given under the project "Library." this: https://github.com/chrisbanes/ActionBar-PullToRefresh how do I turn the "Library" folder in a file. jar that I can put in my libs folder?

Upvotes: 0

Views: 79

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006539

how do I turn the "Library" folder in a file. jar that I can put in my libs folder?

First, that is an Android library project. It depends upon Android resources. It cannot be a JAR.

Second, that is an Android library project set up for use with Gradle and Android Studio. It is not set up for Eclipse users, and the author of the library did not provide Eclipse instructions.

Third, as it says IN REALLY BIG BOLD LETTERS, the project is discontinued.

You will be better served using SwipeRefreshLayout (from the Android Support libraries), or possibly the PullToRefresh-ListView open source project.

You are welcome to reorganize the code from that Gradle project (the "Library" folder you referred to) into an Eclipse project, moving the Java source under src/ and the resources under res/ and try to get it working. However, you will have to use it as an Android library project, not a JAR.

Upvotes: 1

Related Questions