DanielMartinus / Konfetti

Celebrate more with this lightweight confetti particle system 🎊
ISC License
3.17k stars 301 forks source link

RunTimeException DexArchiveMergerException: Unable to merge dex #37

Closed bmbariah closed 6 years ago

bmbariah commented 6 years ago

I'm unable to use this library as it keeps on failing compilation with

Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

I've tried enabling multiDex, rebuild project, deleting all my build folders, invalidate caches..nothing works. I am using Android Studio 3.0.1, Gradle 4.1

bmbariah commented 6 years ago

Turns out issue was a conflict of annotations by JAVA8 and kotlin. You can reproduce said issue by adding an android animation library called Flubber by Appolica.

Fixed it by adding this in my build.gradle (app)


configurations {
    compile.exclude group: 'org.jetbrains' , module:'annotations'
}