tamim abweini tamim abweini - 11 months ago 22
Android Question

How to install Android library in Android Studio?

I'm trying to install the supertooltips library and I fail every time.

I followed many tutorials, but I ended up with

Error:Configuration with name 'default' not found.

Are all the folders and files in the zip necessary, or do I have to put a specific folder in my library folder "myproject/mylibs"? And when I try to add the library from file>new>import module or right click project > new > module > import Gradle project and choose the library; it says project already contains module with this name "app" folder.

I'm using the Android Studio 1.5.


Why didn't you just add this to your dependencies in your Module:app build.gradle:

dependencies {
    compile 'com.nhaarman.supertooltips:library:3.0.+'

Simply add that line and then just rebuild the project and the library will be added.