Execution failed for task ':app:mergeDexRelease'.
See original GitHub issueHi 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:
- Created 3 years ago
- Reactions:7
- Comments:13 (1 by maintainers)
Top GitHub Comments
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
add this line to gradle.properties
org.gradle.jvmargs=-Xmx2048m