Search code examples
androidgradlerealmdex

Dex merger issuse after upgrading library


after i upgrade library in the project (realm from 4.2.0 to 4.3.1) to the latest version i got this error

error:java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: 
Error while merging dex archives: 
***build\transforms\dexBuilder\debug\1.jar, C:\android-
***build\intermediates\transforms\dexBuilder\debug\2.jar
.... 650 of build\transforms\dexBuilder\debug\....

allready tried to clean/build/reinstall/invalidate nothing work, how to solve it?


Solution

  • You are probably running into this bug: https://github.com/realm/realm-java/issues/5640#issuecomment-355497076

    There is a workaround in the link and a fixed release is incoming.