ExifInterface 27.1.0,动态矢量绘图:27.1.1,所有com.android.support库必须使用完全相同的版本。

9

为什么Gradle总是说:

"所有的com.android.support库必须使用完全相同的版本规范(混合版本可能会导致运行时崩溃)。发现版本为27.1.1、27.1.0。例如:com.android.support:animated-vector-drawable:27.1.1com.android.support:exifinterface:27.1.0"

那么27.1.0在哪里?

build.gradle:

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'

implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'

implementation 'com.google.code.gson:gson:2.6.2'

implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.squareup.picasso:picasso:2.71828'


implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-messaging:17.3.0'

implementation 'com.karumi:dexter:5.0.0'

}

2个回答

10

我有相同的问题。这是由于我使用的一些库。我认为是 picasso 库引起的。

现在你可以添加 exifinterface 库。

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

更新

如果您使用androidx,请使用此选项。

implementation "androidx.exifinterface:exifinterface:1.0.0"

这适用于我

根据这个链接,它用于处理图片的EXIF信息

具有读写嵌入在图像文件中的Exif标签的能力:现在具有140个不同的属性(其中近100个是新的Android 7.1 /此支持库!),包括有关相机本身、相机设置、方向和GPS坐标的信息。

一些EXIF信息在下面的图片中显示

EXIF


@Radesh 这个库具体是做什么的? - Alireza Noorali
1
我也遇到了Picasso的同样问题。 我通过以下方式解决了它: implementation "com.android.support:exifinterface:28.0.0" - Evilripper

0

在尝试使用picasso时遇到了这个错误,最终通过添加以下依赖项进行修复:

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

这用于处理图片的EXIF数据。大多数照片都会有与它们关联的EXIF数据,例如拍摄照片的位置、时间和日期等。


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