android - 更新由以下机构管理的视图的“可聚焦”属性时 Android 发布 APK 错误:RNSVGSvgView
问题描述
我使用 react-native 构建了一个应用程序,它工作正常,但是当我构建一个发布 APK 文件并将它安装在真实设备中时,我收到了这个错误
AndroidRuntime: com.facebook.react.bridge.JSApplicationIllegalArgumentException: Error while updating property 'focusable' of a view managed by: RNSVGSvgView
我的应用程序使用 FontAwesome,这是package.json
文件的一部分
"dependencies": {
"moment": "2.24.0",
"react": "16.8.6",
"react-native": "0.61.5",
"react-native-device-info": "3.1.4",
"react-native-gesture-handler": "1.4.1",
"react-native-sha256": "1.3.6",
"react-native-sqlite-storage": "4.1.0",
"react-native-vector-icons": "^6.6.0"
},
"devDependencies": {
"@babel/core": "7.6.0",
"@babel/runtime": "7.6.0",
"@fortawesome/fontawesome-svg-core": "1.2.24",
"@fortawesome/free-solid-svg-icons": "5.11.1",
"@fortawesome/react-native-fontawesome": "0.1.0",
"@react-native-community/eslint-config": "0.0.3",
"babel-jest": "24.9.0",
"eslint": "6.4.0",
"jest": "24.9.0",
"metro-react-native-babel-preset": "0.54.1",
"react-native-chart-kit": "3.13.0",
"react-native-device-info": "3.1.4",
"react-native-keyboard-aware-scroll-view": "0.9.1",
"react-native-modal": "11.4.0",
"react-native-svg": "9.9.4",
"react-native-table-component": "1.2.1",
"react-navigation": "4.0.10",
"react-navigation-drawer": "2.2.2",
"react-navigation-stack": "1.9.3",
"react-navigation-tabs": "2.5.5",
"react-test-renderer": "16.8.6"
},
"jest": {
"preset": "react-native"
}
}
解决方案
推荐阅读
- javascript - 如何更改 Angular 中的 url 参数?
- intellij-idea - 为什么我的 pycharm 项目加载不加载?
- node.js - 如何修复 node-sass 的使用已被弃用?
- aws-cli - 使用 aws cli 或 CDK 一次为 Cloudwatch 的所有日志组创建加密
- python - 在 GitHub Actions 中问题缓存 python 依赖项
- generative-adversarial-network - 如何在 Stylegan2 模型训练中进行数据增强?
- azure-active-directory - 如何在 Teams 应用程序开发的 env.default.json 文件中的 local_applicationIdUris 中使用自定义域
- c - 当我用“fps=fps=30”过滤一个帧时,我的代码开始消耗大量内存,直到它崩溃,但是如果我使用“scale=250:250”它工作正常
- reactjs - Bootstrap-5.1 下拉菜单不适用于反应
- javascript - 如何在按住 cmd 键的同时以编程方式触发点击