gpt4 book ai didi

android - Android Studio 1.0如何导入外部库?

转载 作者:行者123 更新时间:2023-11-29 20:56:06 25 4
gpt4 key购买 nike

我无法在我的项目中导入库,总是出现以下错误:

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com