如何为成功构建解决':react-native-vector-icons'错误?

Fai*_*een 6 reactjs react-native react-native-vector-icons

我正在尝试构建我的react-native应用程序,但我收到一个错误:

  • 出了什么问题:配置项目':react-native-vector-icons'时出现问题.

  • 无法解析所有配置文件':react-native-vector-icons:classpath'.

  • 无法找到com.android.tools.build:gradle:2.3.+的任何匹配项,因为没有com.android.tools.build:gradle版本可用.

我尝试了以下命令:

  • npm安装
  • npm install npm -g
  • npm rm --cached
  • git clean -d -fx
  • npm cache clean --force
  • npm更新
  • npm升级
  • npm审核修复
  • npm install react-native-vector-icons --save

我已经尝试了一些我能找到的关于如何解决这个问题但我不能让这个错误消失.有谁知道如何解决这个react-native-vector-icons构建失败错误?

在此输入图像描述

小智 5

您必须先卸载react-native-vector-icons插件.然后,重新安装它.只需输入:

$ npm uninstall react-native-vector-icons
$ npm install --save react-native-vector-icons