I'm getting the following error when including iTextG in Android Studio,
com.android.dex.DexException: Multiple dex files define Lcom/itextpdf/awt/geom/AffineTransform;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)
I don't know why but seems that there is awt in this library too. This is how i'm including it:
- Download itextg from http://sourceforge.net/projects/itextg/
- Extract the jar file
- Copy itextg-5.5.4.jar to the libs folder in the app directory
- Gradle clean
Why is the awt still in the library ?