Appolica / Flubber

Flubber is an elegant solution for making animations in Android. The library is developed and maintained by Appolica.
Apache License 2.0
267 stars 51 forks source link

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

Open andersonbadari opened 6 years ago

andersonbadari commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

galonga commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

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 commented 6 years ago

Same problem with AS 3.0 and kotlin_version 1.1.51