When I make the command \"react-native run-android\" then it happened:
FAILURE: Build failed with an exception.
So,for me this fixed problem,add google() to repositories
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
then from terminal navigate to your project and run
cd android && gradlew clean
then inside your project run
react-native run-android