我遇到了这个错误,请帮助我。
Error:A problem occurred configuring project ':app'.
> Cannot evaluate module picasso-master : Configuration with name 'default' not found.
目前为止已完成的工作:
1. download the picaso
2.unzip the zip folder
3.Under project section created one directory called as lib and add the unzip file
4. In settings-gradle
include ':app'
include ':libs:picasso-master'
wrote these lines.
5. after that in project structure module dependency add the picasso library
6. rebuild and clean
七。
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
compile project(':library:picasso-master')
compile 'com.squareup.picasso:picasso:2.5.0'
}
我也在 build.gradle 文件中添加了这些代码,但仍然出现相同的错误。我现在该怎么办?请帮帮我。
请问如何添加 Picasso 库?
build.gradle
文件中添加compile 'com.squareup.picasso:picasso:2.5.0'
gradle 依赖呢? - Sebastianobuild.gradle
文件中添加dependencies { compile 'com.squareup.picasso:picasso:2.5.0' }
即可。 - Sebastiano