Android 重复的jar条目

Android 重复的jar条目,android,gradle,dependencies,Android,Gradle,Dependencies,我在我的应用程序中添加了第三方.aar文件。它运行平稳,没有任何问题。但在创建APK文件时,我得到了重复的输入错误 * What went wrong: Execution failed for task ':app:transformClassesAndResourcesWithProguardForQaRelease'. > java.io.IOException: Can't write [/Volumes/***/**/PROJECT/app/build/intermediates

我在我的应用程序中添加了第三方.aar文件。它运行平稳,没有任何问题。但在创建APK文件时,我得到了重复的输入错误

* What went wrong:
Execution failed for task ':app:transformClassesAndResourcesWithProguardForQaRelease'.
> java.io.IOException: Can't write [/Volumes/***/**/PROJECT/app/build/intermediates/transforms/proguard/qa/release/0.jar] (Can't read [/Users/ayeshdon/.gradle/caches/transforms-2/files-2.1/934a6f302e2712d6028d37a9dc4ccd20/jars/libs/commons-lang3-3.3.2.jar(;;;;;;;**.class)] (Duplicate jar entry [org/apache/commons/lang3/AnnotationUtils$1.class]))
我的Gradle文件如下所示:

implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'], exclude: [])
implementation (project(":LIBRARYNAME"))
这里怎么了?

不管“第三方.aar文件”是什么,它都会抱怨一些重复的jar条目[org/apache/commons/lang3/AnnotationUtils$1.class];因此,要么:

implementation (project(":LIBRARYNAME")) {
    exclude group: "org.apache.commons", module: "commons-lang3"
}
或:


这个问题还不够充分,因为
:LIBRARYNAME
完全缺失。可能需要将其排除在外。它是为斯里兰卡当地银行建造的本地图书馆,名称为LCTrustedSDK
implementation fileTree(dir: "libs", include: ["*.aar", "*.jar"]) {
    exclude group: "org.apache.commons", module: "commons-lang3"
}