tamim abweini
tamim abweini

Reputation: 431

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.

Upvotes: 0

Views: 276

Answers (1)

Vucko
Vucko

Reputation: 7479

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.

Upvotes: 3

Related Questions