Execution failed for task ':app:mergeDexRelease'.

See original GitHub issue

Hi There,

I am experiencing this issue, you guys have any ideas about this one?

`* What went wrong: Execution failed for task ‘:app:mergeDexRelease’.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Type org.reactnative.maskedview.BuildConfig is defined multiple times: /Users/fcv-0050/Documents/Thang-Project/fcblog/fcblogDeveloper/node_modules/@react-native-community/masked-view/android/build/.transforms/a653cad861d1364c06ae4f083cd01020/classes/classes.dex, /Users/fcv-0050/Documents/Thang-Project/fcblog/fcblogDeveloper/node_modules/@react-native-masked-view/masked-view/android/build/.transforms/cb6b46470fd83b705ad0ac476848736e/classes/classes.dex Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use ‘–warning-mode all’ to show the individual deprecation warnings. See https://docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings`

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

73reactions
Navipro70commented, May 15, 2021

Resolved: I have two packages @react-native-masked-view/masked-view (from previous developer) and @react-native-community/masked-view. Just remove @react-native-masked-view/masked-view package and try build.

@FonDorn close this one please

16reactions
ohmdobcommented, Apr 13, 2021

add this line to gradle.properties

org.gradle.jvmargs=-Xmx2048m

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native - Android - Task :app:mergeDexRelease FAILED
What went wrong: Execution failed for task ':app:mergeDexRelease'. ... occurred while executing com.android.build.gradle.internal.tasks.
Read more >
EAS build (Managed) fails with error: Execution failed for task
Running eas build --platform android in my managed app outputs the error: Execution failed for task ':app:mergeDexRelease'.
Read more >
How to fix "Execution failed for task
So, In this article, we will discuss 6 different methods for fixing the “Execution failed for task ':app:transformClassesWithDexForRelease” ...
Read more >
Build fails in android-build@1.0
Task :app:mergeDexRelease w: Detected multiple K… ... Execution failed for task ':app:stripReleaseDebugSymbols'.
Read more >
Error : Execution failed app:#mergeDexDebug (Android Studio)
Execution failed for task ': app :mergeDexDebug'. A failure occurred while executing com.android.build.gradle.internal.tasks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found