【发布时间】:2020-07-15 06:33:28
【问题描述】:
目前我在 react native 项目中使用 firebase
"react-native-firebase": "5.6.0", in package.json file
我使用 firebase ml 套件
yarn add @react-native-firebase/app
yarn add @react-native-firebase/ml-vision
我如上所述安装了 react-native-firebase/app。
"@react-native-firebase/app": "8.2.0",
"@react-native-firebase/ml-vision": "7.2.2",
"react-native-firebase": "5.6.0" in package.json file
这样使用时会出现如下错误 我认为firebase正在崩溃 有没有办法解决这个问题? 感谢阅读
* What went wrong:
Execution failed for task':app:transformDexArchiveWithDexMergerForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Program type already present: io.invertase.firebase.BuildConfig
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
【问题讨论】:
标签: react-native firebase-mlkit