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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.