use*_*825 4 javascript firebase react-native
React-Native-Firebase V6 文档没有指定在哪里创建文件firebase.json.
"dependencies": {
"@react-native-firebase/admob": "^0.4.1",
"@react-native-firebase/app": "^0.1.2",
"@react-native-firebase/auth": "^0.1.2",
"@react-native-firebase/firestore": "^0.1.2",
"matter-js": "^0.14.2",
"react": "16.8.6",
"react-native": "0.60.3",
"react-native-elements": "^1.1.0",
"react-native-game-engine": "^0.11.5",
"react-native-gesture-handler": "^1.3.0",
"react-native-linear-gradient": "^2.5.6",
"react-native-progress": "^3.6.0",
"react-native-radial-gradient": "^1.0.5",
"react-native-share": "^2.0.0",
"react-native-vector-icons": "^6.6.0",
"react-navigation": "^3.11.1"
},
Run Code Online (Sandbox Code Playgroud)
在哪里:
构建文件 'D:\Jesus\IFEEP AT\StoreClicker\StoreSkinClicker\node_modules@react-native-firebase\admob\android\build.gradle' 行:44
什么地方出了错:
评估项目 ':@react-native-firebase_admob' 时出现问题。无方法签名:java.util.LinkedHashMap.getStringValue() 适用于参数类型:(String, String) 值:[admob_app_id, ]
firebase.json需要进入你的 react-native 项目的根目录。与package.json.
如果您为 ios 运行 pod install 它将输出一行:
Using firebase.json from '<Path_To_Project>/firebase.json'
我将其解释为正确的位置...
这是您的 firebase.json 可能的样子:
{
"react-native": {
"ml_vision_face_model": true,
"ml_vision_ocr_model": true,
"ml_vision_barcode_model": true,
"ml_vision_label_model": true,
"ml_vision_image_label_model": true
}
}Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4141 次 |
| 最近记录: |