我无法在android模拟器中运行react-native应用错误:spawnSync gradlew.bat未知

时间:2019-11-18 14:09:36

标签: reactjs react-native

我正在尝试在Android Studio模拟器中运行React-Native,但是当我运行它时,它的含义是:

error Failed to install the app. Make sure you have the Android development environment set up: 
https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. 
Run CLI with --verbose flag for more details.
Error: spawnSync gradlew.bat UNKNOWN
at Object.spawnSync (internal/child_process.js:990:20)
at spawnSync (child_process.js:601:24)
at execFileSync (child_process.js:629:13)
at runOnAllDevices (C:\Users\Rron\robot\node_modules\@react-native-community\cli-platform- 
android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at buildAndRun (C:\Users\Rron\robot\node_modules\@react-native-community\cli-platform- 
android\build\commands\runAndroid\index.js:158:41)
at then.result (C:\Users\Rron\robot\node_modules\@react-native-community\cli-platform- 
android\build\commands\runAndroid\index.js:125:12)
at process._tickCallback (internal/process/next_tick.js:68:7)

0 个答案:

没有答案