首页 > 解决方案 > 更新由以下机构管理的视图的“可聚焦”属性时 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"
  }
}

标签: androidreact-nativelogcat

解决方案


推荐阅读