I have to use vector icons in my react native projects, while doing the build (react-native run-android) for android platform I get this error.
Did these steps to add vector Icons:
npm install react-native-vector-icons –save
react-native link
Can anyone help to resolve this issue?
FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugApk'. A problem occurred configuring project ':react-native-vector-icons'. Could not resolve all dependencies for configuration ':react-native-vector-icons:classpath'. Could not resolve com.android.tools.build:gradle:2.3.+. Required by: crm:react-native-vector-icons:unspecified Could not resolve com.android.tools.build:gradle:2.3.+. Failed to list versions for com.android.tools.build:gradle. Unable to load Maven meta-data from https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml. Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml'. jcenter.bintray.com:443 failed to respond
Don't do link with android, the recommended option is with gradle, they have provided it. Gradle always works for me