I'm facing the following error when trying to run
react-native run android
The console acuses:
- 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.
Searched in the following locations: https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml https://jcenter.bintray.com/com/android/tools/build/gradle/
Required by: project :react-native-vector-icons
Changing the version of react-native-vector-icons did the trick
I actually found the answer in this post: react native vector icons
Made it work by making a change in the package.json file.
Changed the line:
"react-native-vector-icons": "^5.0.0",
To:
"react-native-vector-icons": "^6.1.0",