程序类型已存在:com.reactnativecommunity.picker.BuildConfig
Program type already present: com.reactnativecommunity.picker.BuildConfig
使用 react-native-picker/picker 库
- 出了什么问题:
任务“: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
- 尝试:
运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。 运行 使用 --scan 以获得完整的见解。
就这样:
npm uninstall @react-native-community/picker
我已经通过卸载这个解决了这个问题
@react-native-community/picker
npm 卸载@react-native-community/picker
使用 react-native-picker/picker 库
- 出了什么问题: 任务“: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
- 尝试: 运行 使用 --stacktrace 选项获取堆栈跟踪。 运行 使用 --info 或 --debug 选项以获得更多日志输出。 运行 使用 --scan 以获得完整的见解。
就这样:
npm uninstall @react-native-community/picker
我已经通过卸载这个解决了这个问题 @react-native-community/picker
npm 卸载@react-native-community/picker