Error:(26, 13) Failed to resolve: com.squareup.picasso:picasso:2.5.2 的解决

在学习RecyclerView时遇到Android Studio无法解析picasso库的问题,尝试了网上常见的解决方案如添加maven仓库、clean project等无效。最终发现是Gradle Offline工作模式导致的,取消该设置并更新repositories后成功解决。此问题还涉及到其他依赖库的下载失败,通过切换至http源解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

前几天跟着教程学RecyclerView 的时候,android studio 的build.gradle死活不能将com.squareup.picasso:picasso:2.5.2 编译过,一直报错,网上找来的方法大多是说加上
代码:

    repositories {
        jcenter()
        mavenCentral()
    }

clean project后仍没有效果,然后在多次尝试中突然它爆出错误说:

Could not resolve all dependencies for configuration ':app:_debug Could not resolve com.squareup.picasso:picasso:2.5.2.      Required by:          floatbutton:app:unspecified       > No cached version of com.squareup.picasso:picasso:2.5.2 available for offline mode.       > No cached version of
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值