Sakiboy
Sakiboy

Reputation: 7459

Can't import SlidingUpPanel library into eclipse

I'm trying to import the SlidingUpPanel library by umano into Eclipse so I can work on the WordPress Android app.

BUT eclipse will not let me import the library, it will only let me import the demo entitled "DemoActivity."

enter image description here As You can see only the demo can be checked, the library (which is what I want) cannot be checked and is displayed in gray.

How do I import the SlidingPanelLibrary so I can finally have a clean WordPress application to work on...??

Sorry if this is a noob question, I do not have a lot of experience with importing external libraries.

UPDATE: Just use Android Studio and the Gradle build system.

Upvotes: 0

Views: 167

Answers (1)

Enzo Caceres
Enzo Caceres

Reputation: 519

For importing library correctly with android, you need to do some manipulation to "convert" gradle project to eclipse:

  • Create an empty project, named with the lib name, and mark it "As Library", AND don't forget to uncheck "Create Activity" and "Create Icon", they will be useless
  • Download the github as a Zip, and extract it in another folder
  • In your project folder, remove everything in the /res/ folder
  • Copy content of /lib-master/library/java/main/res/ into your /project/res/ folder
  • Do the same for /lib-master/library/java/main/java/ into your /project/src/
  • Don't forget to copy /lib-master/library/java/main/AndroidManifest.xml to /project/
  • Refresh with eclipse and your done!

Upvotes: 0

Related Questions