Closed lucas-dolsan closed 6 years ago
Did you add google() repo in your android/build.gradle ?
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
google()
}
}
I didn't, then I followed this thread react-native-community/react-native-svg/issues/584 which suggests the same thing you said. Apparently I have to update my projects gradle wrapper, unfortunately this causes conflicts with a few other installed packages.
Finished installing it,
react-native run-android
outputed the following error: