I imported the library project following this guide: https://stackoverflow.com/a/20497933 and now I have a libs folder with my required library.
But how do I use it in my code. I can't import com.github.whateverlibrary
and I can't use com.mypackagename.whateverlibrary
.
How do I reference this local library in my project?
Edit:
My settings.gradle file:
include ':libs:MyLibrary'
My app.gradle file:
compile fileTree(include: ['MyLibrary'], dir: 'libs')