How to import an external Library Android Studio 1.0?

3.6k Views Asked by At

I can not import libraries in my project, always appears the following error:

Error:Configuration with name 'default' not found.

settings.gradle

include ':app'
include ':libraries:library'

build-gradle

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile project(':libraries:library')
}

I am using:

UPDATE (NOT WORKS)

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile 'com.getbase:floatingactionbutton:1.4.0'
    compile project(':libraries:library')
}

ERROR

Error:A problem occurred configuring project ':app'.
> Cannot evaluate module library : Configuration with name 'default' not found.
1

There are 1 best solutions below

1
On

As the page that you linked to says,

Just add the dependency to your build.gradle:

dependencies { compile 'com.getbase:floatingactionbutton:1.4.0' }

Also, probably a duplicate of Configuration with name 'default' not found while building android project on gradle