react-native - 使用 react-native 执行 run-android 时出错
问题描述
我的英语不是那么好。我来自土耳其,如果你不清楚我的问题,我很抱歉。
当我run-android
使用 React Native 运行时,我收到以下错误,但是当我运行时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)
解决方案
我认为您应该在任何模拟器或设备上卸载该应用程序,然后重新运行该应用程序。
推荐阅读
- r - knitr::kable 表中的灵活列名
- java - Spring Data JPA PagingAndSortingRepository 对加密数据而不是解密数据进行排序
- python - 通过云功能将数据从 pubsub 写入 bigtable
- npm - 当我尝试使用 npm 安装软件包时,它给了我一个权限被拒绝的错误
- c++ - 如何接受可修改和不可修改的参数?
- python - Python TKinter:如何在 GUI 中实现与 input() 相同的效果?
- javascript - 检查xml是否不同,无论是整个xml还是只是
- c++ - 在函数中使用 mmap()
- javascript - 基于 React JSON 的表单卡在 setstate 中
- awk - 使用 awk 处理 html 相关的 Gift-format Moodle 问题