arsenal
arsenal

Reputation: 199

how to use android project library in eclipse?

I am new in android. I see a lot of android libraries out there like github.com but when I download them none of them are a *.jar file like this one:

NumberProgressBar

It seems that all these libraries are for android studio NOT eclipse (Am I correct? This is important).

My question is: How do I use these libraries in eclipse?

I tried to import the downloaded library as an android project and then mark it as "is library" and then add to my project, but that did not work.

Upvotes: 0

Views: 334

Answers (3)

CommonsWare
CommonsWare

Reputation: 1007604

That library is designed to be built with Gradle for Android (with or without Android Studio), producing an AAR.

Eclipse does not have native AAR support. I have published a recipe and a Ruby script to convert an AAR into a library project that Eclipse can use, though I have not tested it much.

Or, you can download the source code and attempt to reorganize it into an Eclipse-style library project.

Upvotes: 1

osayilgan
osayilgan

Reputation: 5893

I just downloaded it and add it as library project and everything looks fine. How do you do it, it's extremely simple. Let us know in which step you have a problem so we can figure out what is wrong.

Upvotes: 0

Severin
Severin

Reputation: 708

You have to build the library first. For your example, read the Readme file, section 'Build'.

Upvotes: 0

Related Questions