Appolica/Flubber

Error: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' (AS Canary)

andersonbadari opened this issue ยท 7 comments

I'am using Android studio Canary 5, and when I press SHIFT+F10 to 'Run app', it gives the following error message:

Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

What can it be?

Hi,
thank you for using our library.

Does this problem occur only when using our library? Can you reproduce the same problem whith our library's dependency removed?

Well, until now, only when I'm using Flubber this error happens, and I can't reproduce this error with another library.
Maybe could be an error in the IDE...

Could you try running our sample project and report back the results?

Hey all,
thanks for that nice lib. It worked for me very well, but after a rebase onto our dev branch and a Gradle sync I have the same problem. After removing Flubber from the dependencies I was able to build again.

Config:
buildToolsVersion '26.0.1'
minSdkVersion 21
targetSdkVersion 26
support_lib_version: 26.1.0

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

@deangenovski
The demo project for Fubber works nice. I will try to import some libraries (which Im using in my project) into the demo and see which one is causing this error.

Found what was. If I remove this line in build.gradle (Module: app) implementation org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version , I can run the app. I am using android studio 3.0 beta v5.
Variable kotlin_version is '1.1.4-3'

Same problem with AS 3.0 and kotlin_version 1.1.51