Я получаю эту ошибку, когда пытаюсь собрать свое приложение с помощью активного запуска-android.Это было хорошо вчера, но сегодня внезапно получаю эту ошибку.Я пытаюсь найти какое-либо решение, но я все еще застрял.
Я уже проверяю реагировать на собственные векторные иконки, и он выглядит нормально, это также хорошо работает с iOS.
Вот ошибка
* What went wrong:
A problem occurred configuring project ':react-native-vector-icons'.
> Could not resolve all files for configuration ':react-native-vector-icons:classpath'.
> Could not find any matches for com.android.tools.build:gradle:2.3.+ as no versions of com.android.tools.build:gradle are available.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml
https://jcenter.bintray.com/com/android/tools/build/gradle/
Required by:
project :react-native-vector-icons
Вот мой файл Gradle
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
google()
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:3.2.0'
classpath 'io.fabric.tools:gradle:1.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
google()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven { url 'https://maven.fabric.io/public' }
maven { url "https://maven.google.com" }
jcenter()
}
}
ext {
buildToolsVersion = "26.0.1"
minSdkVersion = 16
compileSdkVersion = 26
targetSdkVersion = 26
supportLibVersion = "26.1.0"
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "26.0.1"
}
}
}
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion '26.0.1'
defaultConfig {
targetSdkVersion rootProject.ext.targetSdkVersion
}
}
}
}
}
Может кто-нибудь помочь, что мне здесь не хватает?очень ценится