[英]How to import an external Library Android Studio 1.0?
I can not import libraries in my project, always appears the following error: 我无法在我的项目中导入库,总是出现以下错误:
Error:Configuration with name 'default' not found.
settings.gradle settings.gradle
include ':app'
include ':libraries:library'
build-gradle 集结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:
只需将依赖项添加到您的build.gradle中:
dependencies { compile 'com.getbase:floatingactionbutton:1.4.0' }
依赖项{编译'com.getbase:floatingactionbutton:1.4.0'}
Also, probably a duplicate of Configuration with name 'default' not found while building android project on gradle 另外, 在gradle上构建android项目时可能找不到名称为'default'的Configuration的重复项
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.