Android React Native:无法解析配置的所有文件';:app:debugCompileClasspath';

Android React Native:无法解析配置的所有文件';:app:debugCompileClasspath';,android,react-native,Android,React Native,我是一个新手,会以本地的方式做出反应,遵循指南,现在我正试图编译我的第一个android应用程序。不幸的是,控制台输出: FAILURE: Build failed with an exception. * What went wrong: Could not resolve all files for configuration ':app:debugCompileClasspath'. > Could not find support-vector-drawable.aar (com

我是一个新手,会以本地的方式做出反应,遵循指南,现在我正试图编译我的第一个android应用程序。不幸的是,控制台输出:

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not find support-vector-drawable.aar (com.android.support:support-vector-drawable:27.1.1).
  Searched in the following locations:
      https://jcenter.bintray.com/com/android/support/support-vector-drawable/27.1.1/support-vector-drawable-27.1.1.aar
> Could not find livedata-core.aar (android.arch.lifecycle:livedata-core:1.1.0).
  Searched in the following locations:
      https://jcenter.bintray.com/android/arch/lifecycle/livedata-core/1.1.0/livedata-core-1.1.0.aar
> Could not find viewmodel.aar (android.arch.lifecycle:viewmodel:1.1.0).
  Searched in the following locations:
      https://jcenter.bintray.com/android/arch/lifecycle/viewmodel/1.1.0/viewmodel-1.1.0.aar
> Could not find runtime.aar (android.arch.core:runtime:1.1.0).
  Searched in the following locations:
      https://jcenter.bintray.com/android/arch/core/runtime/1.1.0/runtime-1.1.0.aar
我跳过了哪些步骤?我的平台是Windows 10,我的Android手机是7.1.1。

我只是添加了:

maven{url'https://maven.google.com“}

致:android/build.gradle

allprojects {
    repositories {
        maven { url 'https://maven.google.com' }
        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()
    }
}
我想这是一个渐变版本的问题

我刚刚解决了添加:

<代码>maven{url'https://maven.google.com“}

致:android/build.gradle

allprojects {
    repositories {
        maven { url 'https://maven.google.com' }
        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()
    }
}

我猜这是一个渐变版本的问题

它符合这个问题!这符合问题!