如何在Android Studio中添加毕加索库 [英] how to add picasso library in android studio
本文介绍了如何在Android Studio中添加毕加索库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到此错误,请帮助我.
I am getting this error, please help me.
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
7.
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'
}
我也将这些行添加到构建gradle文件中.但同样的错误来了.我现在该怎么办.请帮助我.
i add these lines in build gradle file too. but same error coming. what shall i do now. please help me.
能告诉我我如何添加毕加索图书馆吗?
Could you please tell me how I add picasso library?
推荐答案
将此添加到build.gradle
中的依赖项:
Add this to your dependencies in build.gradle
:
dependencies {
implementation 'com.squareup.picasso:picasso:2.71828'
...
可以在此处
确保您已连接到Internet.当您同步Gradle时,所有相关文件都将添加到您的项目中
Make sure you are connected to the Internet. When you sync Gradle, all related files will be added to your project
看看您的librarys文件夹,您刚才添加的库应该在其中.
Take a look at your libraries folder, the library you just added should be in there.
这篇关于如何在Android Studio中添加毕加索库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文