无法建立与Firebase版本不兼容的原因,并且相机本机反应

问题描述 投票:0回答:1

这里是我正在使用的内容:

"react": "16.8.3",
"react-native": "0.59.10",
"react-native-camera": "3.3.0",
"react-native-firebase": "5.5.6"

我需要react-native-camera来扫描条形码,但是当我尝试添加react-native-firebase时却无法建立。但是,它仅在Android上失败,在IOS上却运行良好。

这是我尝试解决的问题:1.重新安装RNFirebase软件包,并使用自动或手动方式重新链接软件包2.我尝试将其添加到gradle.properties

android.useAndroidX=true
android.enableJetifier=true
  1. 我已经尝试降级版本,但是没有帮助。
  2. 我也尝试在清单中添加此内容,但是它给了我更多重复的错误。
tools:replace="android:appComponentFactory"
android:appComponentFactory="whateverString"

此错误在终端上说了什么:

  • 出了什么问题:任务':app:processDebugManifest'的执行失败。

    清单合并失败:来自[androidx.core:core:1.0.0]的属性application @ appComponentFactory value =(androidx.core.app.CoreComponentFactory)AndroidManifest.xml:22:18-86也出现在[com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value =(android.support.v4.app.CoreComponentFactory)。建议:在AndroidManifest.xml:7:5-117的元素上添加'tools:replace =“ android:appComponentFactory”'以进行覆盖。

我希望能与相机和火力基地建立反应本机。

我也已经向社区询问过,但还没有答案。https://github.com/react-native-community/react-native-camera/issues/2486

java react-native react-native-firebase react-native-camera
1个回答
0
投票

尝试升级react-native-camera,我在Firebase 5.5.6上使用3.11.1,并且一切正常。

© www.soinside.com 2019 - 2024. All rights reserved.