What went wrong:
Execution failed for task ':app:multiDexListDebug'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Error while merging dex archives:
Type com.reactnativecommunity.asyncstorage.AsyncStoragePackage is defined multiple times: C:\Users\JesusGuillermoCiscom\Documents\a\exitusforce\android\app\build\intermediates\transforms\dynatraceTransformer\debug\101.jar:com/reactnativecommunity/asyncstorage/AsyncStoragePackage.class, C:\Users\JesusGuillermoCiscom\Documents\a\exitusforce\android\app\build\intermediates\transforms\dynatraceTransformer\debug\106.jar:com/reactnativecommunity/asyncstorage/AsyncStoragePackage.class
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
This happened after I installed this package.
It seems that dynatrace duplicates the async storage dependency and I don't know how to fix this.
I already deleted the node_module, cd/android gradlewclean and tried to rebuild the project.
The issue in my case was a definition of 2 packages in my package.json:
Once I remove the deprecated one issue resolved.
Note that if you are using Yarn Workspaces that you might have the deprecated package in one of your workspaces.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With