我无法在我的项目中导入库,总是出现以下错误:
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')
}
我正在使用:
更新(不工作)
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.
最佳答案
正如您链接到的页面所说,
Just add the dependency to your build.gradle:
dependencies { compile 'com.getbase:floatingactionbutton:1.4.0' }
此外,可能是 Configuration with name 'default' not found while building android project on gradle 的副本
关于android - Android Studio 1.0如何导入外部库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27707137/