【发布时间】:2021-12-30 12:39:45
【问题描述】:
在 android 模拟器中运行 npx react-native cli 时出错 命令:npx react-native run-android
错误:在 3 秒内构建失败
at makeError (D:\TestProject\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at D:\TestProject\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (D:\TestProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (D:\TestProject\node_modules\@react-native-community\cli\build\index.js:192:9)
info 使用 --verbose 标志运行 CLI 以获取更多详细信息。
【问题讨论】:
标签: android react-native android-emulator npx