我一直在尝试使用命令“phonegap run android”在 android 4.3 模拟器上安装一个 helloworld 应用程序。它构建成功。我相信错误是在安装过程中发生的。我一直试图修复它几个小时没有运气。有任何想法吗?提前致谢。
PS:我用的是 Mac。操作系统版本为 10.7.5。
以下是错误:
BUILD SUCCESSFUL
Total time: 15 seconds
WARNING : no emulator specified, defaulting to myavd
Waiting for emulator...
shell.js: internal error
Error: spawn EMFILE
at errnoException (child_process.js:977:11)
at ChildProcess.spawn (child_process.js:924:11)
at exports.spawn (child_process.js:712:9)
at Object.exports.execFile (child_process.js:604:15)
at Object.exports.exec (child_process.js:575:18)
at execSync (/Users/xxxxxx/Documents/myapp/platforms/android/cordova/node_modules/shelljs/shell.js:1793:9)
at Object._exec (/Users/xxxxxx/Documents/myapp/platforms/android/cordova/node_modules/shelljs/shell.js:1130:12)
at Object.exec (/Users/xxxxxx/Documents/myapp/platforms/android/cordova/node_modules/shelljs/shell.js:1487:23)
at Object.module.exports.sleep (/Users/xxxxxx/Documents/myapp/platforms/android/cordova/lib/emulator.js:255:15)
at Object.module.exports.wait_for_emulator (/Users/xxxxxx/Documents/myapp/platforms/android/cordova/lib/emulator.js:221:14)