Я только что загрузил новый проект с использованием имени-реактива init -project name-, но я не могу запустить его в своем эмуляторе (реактив-собственного запуска-android)
Это показывает это в командной строке:
info JS server already running.
info Building and installing the app on the device (cd android && gradlew.bat app:installDebug)...
> Task :app:preDebugBuild
[Fatal Error] runtime-1.1.1.pom:2:1: Content is not allowed in prolog.
[Fatal Error] runtime-1.1.1.pom:2:1: Content is not allowed in prolog.
[Fatal Error] common-1.1.1.pom:2:1: Content is not allowed in prolog.
[Fatal Error] common-1.1.1.pom:2:1: Content is not allowed in prolog.
[Fatal Error] runtime-1.1.1.pom:2:1: Content is not allowed in prolog.
[Fatal Error] runtime-1.1.1.pom:2:1: Content is not allowed in prolog.
[Fatal Error] common-1.1.1.pom:2:1: Content is not allowed in prolog.
[Fatal Error] common-1.1.1.pom:2:1: Content is not allowed in prolog.
> Task :app:preDebugBuild FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve android.arch.lifecycle:runtime:1.1.1.
Required by:
project :app > com.android.support:support-compat:28.0.0
> Could not resolve android.arch.lifecycle:runtime:1.1.1.
> Could not parse POM https://dl.google.com/dl/android/maven2/android/arch/lifecycle/runtime/1.1.1/runtime-1.1.1.pom
> Content is not allowed in prolog.
> Could not resolve android.arch.core:runtime:1.1.1.
Required by:
project :app > android.arch.lifecycle:livedata:1.1.1
project :app > android.arch.lifecycle:livedata-core:1.1.1
> Could not resolve android.arch.core:runtime:1.1.1.
> Could not parse POM https://dl.google.com/dl/android/maven2/android/arch/core/runtime/1.1.1/runtime-1.1.1.pom
> Content is not allowed in prolog.
> Could not resolve android.arch.core:common:1.1.1.
Required by:
project :app > android.arch.lifecycle:livedata:1.1.1
project :app > android.arch.lifecycle:livedata-core:1.1.1
> Could not resolve android.arch.core:common:1.1.1.
> Could not parse POM https://dl.google.com/dl/android/maven2/android/arch/core/common/1.1.1/common-1.1.1.pom
> Content is not allowed in prolog.
> Could not resolve android.arch.lifecycle:common:1.1.1.
Required by:
project :app > android.arch.lifecycle:livedata-core:1.1.1
> Could not resolve android.arch.lifecycle:common:1.1.1.
> Could not parse POM https://dl.google.com/dl/android/maven2/android/arch/lifecycle/common/1.1.1/common-1.1.1.pom
> Content is not allowed in prolog.
Я попытался изменить свою сборку: Gradle версии 3.0.1, это будет еще одна ошибка, поэтому я предполагаю, что мне нужно обновить сборку Gradle или понизить мою собственную версию реакции. Прямо сейчас я пытаюсь обновить мой Android SDK от Android Studio.
Это мой текущий сборщик
// Top-level build file where you can add configuration options common to all sub-projects/modules.
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.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
Чего мне не хватает, если я хочу обновить свой билд сборки?