Hi,
Any has any clue why I receive the following error on transformClassesWithDexForDailyDebug:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/vladium/emma/rt/RT;
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:502)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
We have 2 modules in Android studio, both have: "testCoverageEnabled true".
1st module is sdk, 2nd module is app. Both have unit tests.
So module 1 is include in module 2. When I remove "testCoverageEnable true" in any of the modules it's working fine, but then I don't have any testCoverage reports for either module.
sdk gradle file:
http://pastebin.com/JHYiTP5e app gradle file:
http://pastebin.com/nG2KXjaG
It looks like it does merge the sdk module in the app module with both having jacoco, seems like to work for all other dependencies (which are duplicated in both gradle files).
Thanks in advanced.
Niek