Home > Mobile >  Excuse me, how to solve the conflict in the package
Excuse me, how to solve the conflict in the package

Time:09-25

Do android studio in Error: Error: Execution failed for task ': app: transformClassesWithJarMergingForDebug'.
Com. Android. Build. API. The transform. TransformException: Java. Util. Zip. ZipException: duplicate entry: org/apache/Commons/codec/language/DoubleMetaphone class


I checked the DoubleMetaphone. Class in the following two bags,

Commons - codec - 1.10

Org. Apache. HTTP. Legacy. Jar

But, I need these two packages, that is how to solve?

CodePudding user response:

exclude

CodePudding user response:

The Commons - the codec are introduced such
Dependencies {
The compile fileTree (include: [' *. Jar '], dir: 'libs')
The compile group: 'Commons - the codec, name:' Commons - the codec, version: '1.7'
}

And org. Apache. HTTP. Legacy. The jar is directly under the lib directory, this kind of circumstance, ask exclude how to write? Thank you so much!
  • Related