无法解析:exifinterface。

9
当我将picasso从2.5.2升级到2.71828并进行gradle同步时,我看到一个exifinterface错误:
错误:
Failed to resolve: exifinterface

替换

implementation 'com.squareup.picasso:picasso:2.5.2'

使用

标签

implementation 'com.squareup.picasso:picasso:2.71828'

解决了吗? - IntelliJ Amiya
看起来是我的构建系统出了问题。我们的内部工厂没有被填充,或者无法获取exifinterface 2.7.1 jar包。 - mesh
5个回答

8
毕加索依赖于exifinterface,因此您必须将其添加到您的依赖项中。
implementation 'com.android.support:exifinterface:28.0.0'

如果您使用 androidX,请将以下内容添加到您的 dependencies 中。
implementation "androidx.exifinterface:exifinterface:1.0.0"

3

1
我使用AndroidX,下面的依赖项解决了我的问题:
    implementation 'androidx.exifinterface:exifinterface:1.1.0-alpha01'

0

通过添加 androidx,解决了我的问题:

  implementation "androidx.exifinterface:exifinterface:1.0.0

0
如果您正在使用支持库,应该使用解决方案策略将它们全部强制为相同的版本。
configurations.all {
  resolutionStrategy {
    eachDependency { details ->
        if (details.requested.group == 'com.android.support') {
        details.useVersion versions.supportLibrary
      }
    }
  }
}

ExifInterface Support Library添加到您的项目中,使用以下依赖项:

implementation "com.android.support:exifinterface:27.1.0"

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接