找不到com.squareup.picasso:picasso:2.5.3-SNAPSHOT

时间:2016-08-08 12:36:14

标签: android picasso

我想用com.squareup.picasso:picasso:2.5.3-SNAPSHOT编译。但我得到了这个错误:

Error:Could not find com.squareup.picasso:picasso:2.5.3-SNAPSHOT.
Required by:
    familywall-android:app:unspecified
<a href="searchInBuildFiles">Search in build.gradle files</a>

有人经历过类似的事吗?

2 个答案:

答案 0 :(得分:16)

您提到的Picasso快照版本在标准maven回购中不可用。在build.gradle中,将以下依赖项添加到依赖项块:

dependencies {
    // 2.5.3 is no longer updated.
    compile 'com.squareup.picasso:picasso:3.0.0-SNAPSHOT'
    //...
}

并在存储库块中添加

repositories {
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
    //...
}

答案 1 :(得分:1)

我找到.jar here,最后一个版本是21.它工作了!