1
我試圖構建Android應用程序中使用科爾多瓦和離子框架,但每當我試圖選擇平臺,我得到了以下錯誤消息,我還設置了機器人,螞蟻和Java錯誤創建Android項目的離子平臺的android
環境變量$ cordova platform add android
Creating android project...
C:\Users\Darpan\node_modules\q\q.js:126
throw e;
^
Error: Failed to run "android". Make sure you have the latest Android SDK instal
led, and that the "android" command (inside the tools/ folder) is added to your
PATH.
at C:\Users\Darpan\.cordova\lib\npm_cache\cordova-android\3.6.3\package\bin\
lib\check_reqs.js:43:27
at ChildProcess.exithandler (child_process.js:652:7)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Socket.<anonymous> (child_process.js:969:11)
at Socket.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
Error: C:\Users\Darpan\.cordova\lib\npm_cache\cordova-android\3.6.3\package\bin\
create.bat: Command failed with exit code 8
at ChildProcess.whenDone (c:\Users\Darpan\AppData\Roaming\npm\node_modules\c
ordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)
我不明白是什麼的問題。
我處理在過去的幾個小時完全相同的問題。你在使用哪個模擬器?我所面臨使用Genymotion 2.3.0這個問題,這是因爲有在任何地方沒有'android'文件。我也有庫存。 – Mehran 2014-10-11 20:30:18