這是我使用的:"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.propertiesandroid.useAndroidX=trueandroid.enableJetifier=true我嘗試過降級版本,但沒有幫助。我也嘗試在清單中添加此內容,但它給了我更多錯誤重復。tools:replace="android:appComponentFactory"android:appComponentFactory="whateverString"這是終端上所說的錯誤:出了什么問題:任務“:app:processDebugManifest”執行失敗。清單合并失敗: [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 中的屬性 application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) 也存在于 [com.android.support :support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory)。建議:將 'tools:replace="android:appComponentFactory"' 添加到 AndroidManifest.xml:7:5-117 的元素中進行覆蓋。我希望用相機和 Firebase 構建 React-Native。我也向社區詢問過,但還沒有答案。 https://github.com/react-native-community/react-native-camera/issues/2486
添加回答
舉報
0/150
提交
取消