使用react-native执行run-android时出现错误

时间:2020-05-06 01:30:41

标签: react-native

我的英语不太好。我来自土耳其,对不起您的问题。

当我在React Native上运行run-android时,出现以下错误,但是当我运行run-ios时,我没有任何问题。我正在使用Mac计算机。

谢谢您的帮助。


info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1063 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Installing the app...

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: spawn EPERM
    at ChildProcess.spawn (internal/child_process.js:407:11)
    at Object.spawn (child_process.js:548:9)
    at module.exports (/Users/meric/Desktop/Phonder/node_modules/execa/index.js:205:26)
    at runOnAllDevices (/Users/meric/Desktop/Phonder/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:32)
    at buildAndRun (/Users/meric/Desktop/Phonder/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:182:41)
    at /Users/meric/Desktop/Phonder/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:146:12
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Command.handleAction (/Users/meric/Desktop/Phonder/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js:186:9)

enter image description here

1 个答案:

答案 0 :(得分:0)

我认为您应该在任何模拟器或设备上卸载该应用,然后请重新运行该应用。