问题描述
我正在导入Microsoft认知视觉代码,其中gradle在项目构建中显示“重复的类错误”。我不了解背后的原因,也无法解决。 在Stackoverflow上搜索其他答案,但没有解决我的问题的方法。 logcat提供了文档链接,但从未重定向到该链接。
在模块jetified-commons-io-2.4.jar(commons-io:commons-io:2.4)和jetified-vision-1.0.395-运行时模块中找到了重复的类org.apache.commons.io.ByteOrderMark .jar(com.microsoft.projectoxford:vision:1.0.395)
build.gradle
configurations {
cleanedAnnotations
compile.exclude group: 'org.jetbrains',module:'annotations'}
依赖性{
implementation (fileTree(dir: 'libs',include: ['*.jar']))
implementation ('org.jetbrains:annotations-java5:16.0.2')
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0',{
exclude group: 'com.android.support',module: 'support-annotations'
})
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
testImplementation 'junit:junit:4.13'
implementation 'com.microsoft.projectoxford:face:1.4.4'
implementation 'com.microsoft.projectoxford:vision:1.0.395'
implementation 'com.microsoft.projectoxford:emotion:1.0.355'
implementation 'com.github.kittinunf.fuel:fuel-android:1.5.0'
implementation 'com.github.kittinunf.fuel:fuel:2.2.3'
implementation('org.jetbrains.kotlin:kotlin-stdlib:1.4.0')
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)