在项目Android中找不到react本机矢量图标/AntDesign

在项目Android中找不到react本机矢量图标/AntDesign,android,react-native,Android,React Native,我面临以下问题 Error: Unable to resolve module `react-native-vector-icons/AntDesign` from `node_modules/react-native-elements/src/helpers/getIconType.js`: react-native-vector-icons/AntDesign could not be found within the project. Package.json { "name": "

我面临以下问题

Error: Unable to resolve module `react-native-vector-icons/AntDesign` from `node_modules/react-native-elements/src/helpers/getIconType.js`: react-native-vector-icons/AntDesign could not be found within the project.
Package.json

{
  "name": "GeoLocation",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@react-native-community/geolocation": "^2.0.2",
    "react": "16.9.0",
    "react-native": "0.61.5",
    "react-native-elements": "^1.2.7",
    "react-native-fused-location": "^1.1.1",
    "react-native-get-location": "^1.4.2",
    "react-native-vector-icons": "^4.6.0"
  },
  "devDependencies": {
    "@babel/core": "7.8.4",
    "@babel/runtime": "7.8.4",
    "@react-native-community/eslint-config": "0.0.5",
    "babel-jest": "24.9.0",
    "eslint": "6.8.0",
    "jest": "24.9.0",
    "metro-react-native-babel-preset": "0.56.4",
    "react-test-renderer": "16.9.0"
  },
  "jest": {
    "preset": "react-native"
  }
}

我已经完成了下面链接中提到的所有步骤


我已经看到了你的代码,我想告诉你,首先你应该编辑你的
包.json
,并升级
反应本机向量图标
版本
“反应本机矢量图标”:“^4.6.0”,
“react native vector icons”:“^6.6.0”,
,然后删除节点模块文件夹,然后运行npm install命令,然后在文件中导入矢量图标,如下所示:-

import AntDesign from "react-native-vector-icons/AntDesign"

如果您仍然面临任何问题,请随时再次询问。

是否在android/app/build.gradle中添加了字体列表?