我无法在项目中导入库,总是会出现以下错误:
Error:Configuration with name 'default' not found.
settings.gradle
include ':app'
include ':libraries:library'
集结gradle这个
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
compile project(':libraries:library')
}
我正在使用:
更新(不工作)
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:A problem occurred configuring project ':app'.
> Cannot evaluate module library : Configuration with name 'default' not found.
答案 0 :(得分:2)
如您链接的页面所示,
只需将依赖项添加到build.gradle:
依赖{ 编译' com.getbase:floatingactionbutton:1.4.0' }
此外,可能是Configuration with name 'default' not found while building android project on gradle
的副本