clementiano
clementiano

Reputation: 139

How to Use Android PagerSlidingTabStrip library or any other gradle built library in Eclipse

I have a problem importing the PagerSlidingTabStrip library into Eclipse, I get multiple errors and I know this happens because the library was built using gradle.

I tried to follow this answer but I can't find use as source folder in the build path menu.

I've never used gradle previously and don't know how to go about this in Eclipse. Please guys, help most of us who have this problem out of our dilemma. Would be very grateful.

Upvotes: 1

Views: 807

Answers (1)

clementiano
clementiano

Reputation: 139

Okay in the end this was what i did:

  • I checked the build.gradle file of the library for target and min sdks. I then put what i found in the android manifest.xml which I know Eclipse uses.
  • I deleted the build.gradle and gradle.properties files.
  • Made sure the project was marked as a library. And it works!

I think the most crucial step was to check the build.gradle for the sdks and whatever else the project requires and replicating that the way it should be in the manifest file.

Upvotes: 1

Related Questions