在android上运行时,反应本机捆绑的js失败了

Coo*_*ol7 0 javascript android react-native

在打包器中,我在运行命令时收到以下错误

react-native run-android

打包器输出是:

 Loading dependency graph...
        Bundling `index.js`  [development, non-minified]  ????????????????  0.0% (0/1)Error: watch 
 ENOSPC
    at _errnoException (util.js:1019:11)
    at FSWatcher.start (fs.js:1383:19)
    at Object.fs.watch (fs.js:1409:11)
    at NodeWatcher.watchdir
Run Code Online (Sandbox Code Playgroud)

有帮助吗?提前致谢.

Arn*_*asa 6

尝试重新运行项目并清理项目,cd android然后gradlew clean,我建议先运行react-native start,然后打开一个新的终端然后运行react-native run-android,我也找到了类似的故障排除案例,https://facebook.github.io/ react-native/docs/troubleshooting.html #nove-to-start-react-native-package-manager-on-linux希望有帮助:)