【发布时间】:2020-09-08 05:45:44
【问题描述】:
信息 JS 服务器已经在运行。 info 正在安装应用程序...
任务:@react-native-community_datetimepicker:compileDebugJavaWithJavac
任务:react-native-fbsdk:compileDebugJavaWithJavac
任务:react-native-gesture-handler:compileDebugJavaWithJavac
任务:react-native-maps:compileDebugJavaWithJavac
任务:react-native-reanimated:compileDebugJavaWithJavac
任务:app:compileDebugJavaWithJavac 失败
FAILURE:构建失败并出现异常。
-
出了什么问题: 任务 ':app:compileDebugJavaWithJavac' 执行失败。
java.lang.reflect.UndeclaredThrowableException
尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
通过https://help.gradle.org获得更多帮助
47 秒后构建失败
at checkExecSyncError (child_process.js:621:11)
at execFileSync (child_process.js:639:15)
at runOnAllDevices (node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:74:39)
at buildAndRun (node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:158:41)
【问题讨论】:
-
在 Windows 操作系统上构建 Android 应用程序的配置 - react-native-cli:2.0.1 - react-native:0.60.6 - node:v12.9.0 - npm:6.10.2 - yarn:1.22。 4
标签: javascript android react-native npm build