Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resolve ':react-native-vector-icons' error for a successful build?

I am trying to build my react-native app but I am getting an error:

  • What went wrong: A problem occurred configuring project ':react-native-vector-icons'.

  • Could not resolve all files for configuration ':react-native-vector-icons:classpath'.

  • Could not find any matches for com.android.tools.build:gradle:2.3.+ as no versions of com.android.tools.build:gradle are available.

I have tried the following commands:

  • npm install
  • npm install npm -g
  • npm rm --cached
  • git clean -d -fx
  • npm cache clean --force
  • npm update
  • npm upgrade
  • npm audit fix
  • npm install react-native-vector-icons --save

I have tried everything I can find on how to resolve this but I cannot get this error to go away. Does anyone know how to resolve this react-native-vector-icons build fail error?

enter image description here

like image 629
FairyQueen Avatar asked Dec 10 '18 18:12

FairyQueen


1 Answers

You have to uninstall the react-native-vector-icons plugin first. Then, reinstall it. Just type:

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

like image 131
Lucas Pinheiro Avatar answered Oct 11 '22 21:10

Lucas Pinheiro