zoho / react-native-zohodesk-portal-sdk

8 stars 4 forks source link

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

Open supmanyu opened 8 months ago

supmanyu commented 8 months ago

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",