React-Native Android-错误:无法解析配置':classpath'的所有工件

时间:2019-08-26 09:41:47

标签: javascript android react-native gradle

渐变版本:


5.6级

构建时间: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)

操作系统:Windows 10 10.0 amd64

结果

命令:react-native run-android 错误:命令失败:gradlew.bat app:installDebug -PreactNativeDevServerPort = 8081

失败:构建失败,并出现异常。

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)

0 个答案:

没有答案