1
我一直試圖安裝一個helloworld應用程序到android 4.3模擬器上,並使用命令「phonegap run android」。它已成功建成。我相信在安裝過程中發生錯誤。我一直在努力修復它幾個小時,沒有運氣。有任何想法嗎?提前致謝。Phonegap未能在Android模擬器上安裝示例應用程序
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)
只是一個建議,嘗試用PhoneGap的編譯,然後與亞行模擬器安裝 –
感謝您的建議。我曾嘗試過,並且它工作。但我仍然試圖弄清楚爲什麼從命令行安裝失敗。 – Vaeianor
嘗試使用「-V」標誌指定詳細輸出。由於冗長,可能要將它分解爲'build'和'install'。 –