To include an extra dependency into an Android project we need to:
- Go to file and select “Project Structure”:
Next step it is to select the app section and then the Dependencies tap.
At this point we click on the plus sign at the bottom of the window and then we select add library dependency:
The last step it is to add the dependency we’re looking for, in my case it is to include the apache commons, so I search for
org.apache.commons.ioand I select on the package I am interested to and click OK.