Android工作室说:
"比2.8更新版本的com.squareup.ppicasso:ppicasso是可用的:2.71828〃;
安卓工作室屏幕截图
但是我发现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'
这是他们GitHub 上的一个已知问题
如前所述:
将Picasso版本2.71828更新为2.8。现在Android Lint抱怨有一个更新的版本2.71828可用。这在自71828>8.
可以取消对库的GradleDependency lint检查取消警告。然而,如果版本数量分量反而单调增加。
所以保持原样。
如果它真的困扰你,你可以这样做来抑制警告:
//noinspection GradleDependency
implementation 'com.squareup.picasso:picasso:2.8'