title: Embedding Android Screenshot Library
body: <p>Currently I'm working on an app which is supposed to take screenshots from the device screen.</p>
  
  <p>I read about <a href="https://code.google.com/archive/p/android-screenshot-library/" rel="nofollow noreferrer">Android Screenshot Library</a> and it sounds very promising.</p>
  
  <p>I want to start using it in my app. The problem is I'm having hard times embed it into my project.</p>
  
  <p>I tried to import the project folder(asl-1.2) into my <code>libs</code> directory inside the <code>app</code> module.</p>
  
  <p>I followed <a href="https://stackoverflow.com/questions/16588064/how-do-i-add-a-library-project-to-android-studio">this</a> post but it still doesn't help me.</p>
  
  <p>The problem is the project is not linked with my <code>app</code> module and therefore I can't use the classes that reside in the library.</p>
  
  <p>Here is a screenshot of the project hierarchy:</p>
  
  <p><a href="https://i.gyazo.com/f496e790d5ab06fc4c785df77e0984bd.png" rel="nofollow noreferrer">https://i.gyazo.com/f496e790d5ab06fc4c785df77e0984bd.png</a></p>
  
  <p>As you can see, the <code>ScreenshotService.java</code> file is marked with the red icon with the letter 'J'</p>