程序类型已存在:com.reactnativecommunity.picker.BuildConfig

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

使用 react-native-picker/picker 库

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

就这样:

npm uninstall @react-native-community/picker

我已经通过卸载这个解决了这个问题 @react-native-community/picker

npm 卸载@react-native-community/picker