渐变版本:
构建时间:2019-08-14 21:05:25 UTC 修订:f0b9d60906c7b8c42cd6c61a39ae7b74767bb012
科特琳:1.3.41 Groovy:2.5.4 Ant:2019年3月12日编译的Apache Ant(TM)版本1.9.14 JVM:12.0.2(Oracle Corporation 12.0.2 + 10)
命令:react-native run-android 错误:命令失败:gradlew.bat app:installDebug -PreactNativeDevServerPort = 8081
失败:构建失败,并出现异常。
出了什么问题: 配置根项目“ res”时发生问题。
无法解析配置':classpath'的所有工件。 找不到com.android.tools.build:gradle:5.6.0。 在以下位置搜索:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.6.0/gradle-5.6.0.pom
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/5.6.0/gradle-5.6.0.jar
- 文件:/ C:/Users/AsUs/.m2/repository/com/android/tools/build/gradle/5.6.0/gradle-5.6.0.pom
- 文件:/ C:/Users/AsUs/.m2/repository/com/android/tools/build/gradle/5.6.0/gradle-5.6.0.jar
- https://jcenter.bintray.com/com/android/tools/build/gradle/5.6.0/gradle-5.6.0.pom
- https://jcenter.bintray.com/com/android/tools/build/gradle/5.6.0/gradle-5.6.0.jar 要求: 项目:
尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。使用--scan运行以获取完整的见解。
4秒内失败
at checkExecSyncError (child_process.js:621:11)
at execFileSync (child_process.js:639:15)
at runOnAllDevices (C:\Users\AsUs\Desktop\res\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:74:39)
at buildAndRun (C:\Users\AsUs\Desktop\res\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
at C:\Users\AsUs\Desktop\res\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:125:12
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async Command.handleAction (C:\Users\AsUs\Desktop\res\node_modules\react-native\node_modules\@react-native-community\cli\build\cliEntry.js:160:7)