title: How to import 3rd party libraries
body: <p>I found some cool android libraries the other day and decided to try some. But I'm having trouble correctly importing the library.</p>
  
  <p>This is the URL of the library : <a href="https://github.com/dmytrodanylyk/android-process-button" rel="nofollow">https://github.com/dmytrodanylyk/android-process-button</a></p>
  
  <p>I first tried importing the library to eclipse (and move the files in java directory to src directory and set the project as library) and importing the sample to eclipse and set it to use the library project (Properties->Android->Libraries). But it didn't work. The layout files said it failed to instantiate [custom widget class]. </p>
  
  <p>The I tried importing the .jar file to libs directory (and update the java build path) but it didn't work either. It showed errors in the java files too.</p>
  
  <p>I then tried copying all the java and layout files to the sample project directory and it worked. But I'm guessing that's not the way to work with 3rd party libraries.</p>
  
  <p>I first thought it's some error with the library but all the other libraries I tried to import to my projects faced the same problem.</p>
  
  <p>Can someone walk me through how to correctly import a 3rd party library to my android project?</p>