简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM