When I make the command \"react-native run-android\" then it happened:
FAILURE: Build failed with an exception.
buildscript {
repositories {
google() // I had to put this before jcenter(). If I put jcenter() first it fails when running react-native run-android
jcenter()
}
}
To be clear though, if i put jcenter()
first in buildscript, I could still get a successful build within Android Studio. Running react-native
run-android however was failing until I put google()
in front of jcenter()
. After that everything was smooth as butter.