Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andersonbadari opened this issue Sep 13, 2017 · 7 comments

Comments

@andersonbadari
Copy link

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?

@bkolarov-appolica
Copy link
Contributor

bkolarov-appolica commented Sep 14, 2017

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?

@andersonbadari
Copy link
Author

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...

@deangenovski
Copy link
Contributor

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

@galonga
Copy link

galonga commented Sep 26, 2017

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

@andersonbadari
Copy link
Author

andersonbadari commented Sep 29, 2017

@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.

@andersonbadari
Copy link
Author

andersonbadari commented Sep 29, 2017

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'

@fic212
Copy link

fic212 commented Nov 13, 2017

Same problem with AS 3.0 and kotlin_version 1.1.51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants