Program type already present: com.reactnativecommunity.picker.BuildConfig

1.3k Views Asked by At

Using react-native-picker/picker library

  • 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: Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Program type already present: com.reactnativecommunity.picker.BuildConfig

  • 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.
2

There are 2 best solutions below

0
On BEST ANSWER

Just do:

npm uninstall @react-native-community/picker
0
On

I have resolved this issue by uninstalling this @react-native-community/picker

npm uninstall @react-native-community/picker