Я устанавливаю реагирующую версию 0.62 и запускаю npx react-native run-android
при установке fre sh (сразу после установки), но я получил эту ошибку:
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring root project 'myApp'.> Could not resolve all artifacts for configuration ':classpath'.
Could not find com.android.tools.build:gradle:3.5.2.
И это мой файл build.gradle в android каталог:
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
}
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:3.5.2")
}
}
allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}