P Sharma
P Sharma

Reputation: 194

How to import github library in eclipse

I am trying to use material designing library https://github.com/drakeet/MaterialDialog from github in my eclipse but I didnt found any jar file in this library project. So how can I use this library in my project in eclipse

Upvotes: 4

Views: 586

Answers (3)

Dmytro D
Dmytro D

Reputation: 2584

I recommend you to use Android Studio with Gradle support by default. But if you want use Eclipse download Gradle plugin and add this lib as dependency

dependencies {
    compile 'me.drakeet.materialdialog:library:1.2.2'
}

Upvotes: 0

Hasmukh Barochiya
Hasmukh Barochiya

Reputation: 250

You have to convert this library project from gradle to eclipse. You can get many links over the web for it. Try this.

The library project you are looking is build into android studio(Gradle). So I recommend you to use android studio instead of eclipse.

Upvotes: 1

VonC
VonC

Reputation: 1328652

If you have a Gradle build, as mentioned in the README, you just add:

dependencies {
    compile 'me.drakeet.materialdialog:library:1.2.2'
}

As explained in the blog post, this looks like (in Android Studio)

http://drakeet.me/wp-content/uploads/2014/07/QQ%E6%88%AA%E5%9B%BE20140710124614.png

Upvotes: 3

Related Questions