Я пытаюсь установить Pushwoosh в свое приложение React Native и получаю следующую ошибку:
> Could not resolve com.android.tools.build:gradle:2.3.3.
> Could not get resource 'https://maven.google.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom'.
> Could not GET 'https://maven.google.com/com/android/tools/build/gradle/2.3.3/gradle-2.3.3.pom'.
> maven.google.com: nodename nor servname provided, or not known
> Could not resolve com.google.gms:google-services:4.2.0.
Required by:
project :pushwoosh-react-native-plugin
> Could not resolve com.google.gms:google-services:4.2.0.
> Could not get resource 'https://jcenter.bintray.com/com/google/gms/google-services/4.2.0/google-services-4.2.0.pom'.
> Could not GET 'https://jcenter.bintray.com/com/google/gms/google-services/4.2.0/google-services-4.2.0.pom'.
> jcenter.bintray.com
Я довольно новичок в разработке React Native и Android - поэтому я не совсем уверенчто здесь происходит.
Мой основной файл build.gradle выглядит так:
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
}
repositories {
google()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:3.4.1")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
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()
}
}
и я следовал инструкциям на github.
Может кто-нибудь объяснитьмне в чем именно проблема тут?