Skip to content

[Android] Build failed: A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingWorkAction #19

@supmanyu

Description

@supmanyu

Getting the following error when trying to run the android app locally:

* What went wrong:
Execution failed for task ':app:mergeLibDexStagingDebug'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingTaskDelegate
   > There was a failure while executing work items
      > A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingWorkAction
         > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
           Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
           Type com.reactlibrary.BuildConfig is defined multiple times: /Users/edufund/Edufund/edufund-client-app/node_modules/react-native-insta-story/android/build/.transforms/28c99f1144b26e71db42f45e4fb0407a/transformed/classes/classes.dex, /Users/edufund/Edufund/edufund-client-app/node_modules/react-native-zohodesk-portal-sdk/android/build/.transforms/d03d881a28b8c53362cc093226b9a7d0/transformed/classes/classes.

System info:

react-native: 0.68.5
react-native-zohodesk-portal-sdk: "^1.3.1",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions