Sam*_*ern 2 android firebase firebase-mlkit
在将我的依赖项升级到最新版本时:
implementation "com.google.firebase:firebase-ml-common:16.1.6"
implementation "com.google.firebase:firebase-ml-model-interpreter:16.2.4"
implementation "com.google.firebase:firebase-ml-vision:18.0.2"
Run Code Online (Sandbox Code Playgroud)
我的构建因以下异常而失败:
* What went wrong:
Execution failed for task ':mlkit:app:transformResourcesWithMergeJavaResForDebug'.
> More than one file was found with OS independent path 'META-INF/androidx.exifinterface_exifinterface.version'
Run Code Online (Sandbox Code Playgroud)
我该如何解决?
您可以安全地将以下内容添加到android {}应用build.gradle文件的块中,以忽略这些文件:
android {
//
// ...
//
packagingOptions {
exclude 'META-INF/androidx.exifinterface_exifinterface.version'
exclude 'META-INF/proguard/androidx-annotations.pro'
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
957 次 |
| 最近记录: |