【发布时间】:2021-03-13 07:59:33
【问题描述】:
Android 工作室说:
“com.squareup.picasso:picasso 有比 2.8 更新的版本:2.71828”
Screenshot from Android Studio
但我看到 2.8 是 https://github.com/square/picasso/releases 上的最新版本。
我的项目的 Gradle 构建脚本:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
我猜 Gradle 看起来不是在 GitHub 上,而是在其他一些存储库上?如果是,我应该改变吗
implementation 'com.squareup.picasso:picasso:2.8'
类似
implementation 'com.github.square:picasso:2.8'
或者我应该改为:
implementation 'com.squareup.picasso:picasso:2.71828'
【问题讨论】:
-
如果你这样做
File > Invalidate Caches / Restart会解决它吗? -
@MSpeed - 不,在我写到这里之前测试过
标签: android android-studio gradle build.gradle picasso