为什么 gradle 总是说
“所有 com.android.support 库必须使用完全相同的版本
规范(混合版本可能导致运行时崩溃)。成立
版本 27.1.1、27.1.0。例子包括com.android.support:animated-vector-drawable:27.1.1
and
com.android.support:exifinterface:27.1.0
"
27.1.0 在哪里?
构建.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'
}
我也有同样的问题。这是因为我使用过一些库。我觉得是这样的picasso
.
所以现在你可以添加 exifinterface 库
implementation "com.android.support:exifinterface:27.1.1"
UPDATE
如果你使用 androidx,请使用这个
implementation "androidx.exifinterface:exifinterface:1.0.0"
这对我来说是工作
根据这个link, 用于句柄EXIF图片信息
读取和写入图像文件中嵌入的 Exif 标签的能力:现在具有 140 个不同的属性(其中几乎 100 个是 Android 7.1/此支持库的新属性!),包括有关相机本身、相机设置、方向和 GPS 坐标的信息。
一些EXIF信息如下图所示
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)