Skip to content Skip to sidebar Skip to footer

How To Import 3rd Party Libraries

I found some cool android libraries the other day and decided to try some. But I'm having trouble correctly importing the library. This is the URL of the library : https://github.c

Solution 1:

The best option you can do is to use gradle as your dependency manager.

The library you have posted is using Gradle so you can link to this library in this way:

dependencies {
  compile'com.github.dmytrodanylyk.android-process-button:library:0.0.7'
}

And voilá! You have your library ready to use in your app :D

I'll let you a couple of useful links to use Gradle properly:

  • Mark Allison's tutorial about Gradle It will explain step by step how Gradle works (keep in mind that is using an outdated version of Android Gradle plugin, you have to adapt the version to the current one which is 0.10)
  • Official Developer Docs about Gradle In here you can find another step by step tutorial to configure and use Gradle (this one is more updated).

You can use Gradle directly in Android Studio (Intellij) if you don't mind to change your main editor.

If you want to stick around with Eclipse then this stackoverflow link may be helpful!

EDIT:

Oh! And if you want to search already Gradlized libraries you can navigate to Gradle Please!

Solution 2:

I see the library uses gradle. So if you use gradle for dependency management or Android Studio (which uses gradle by default) importing will be a breeze. The installation instruction for gradle is even available at the github project site.

dependencies {
    compile'com.github.dmytrodanylyk.android-process-button:library:0.0.7'
}

Post a Comment for "How To Import 3rd Party Libraries"