嗨即時嘗試啓動一個項目與phonegap 3.3。我遇到的問題是試圖讓節點啓動項目。我設置了環境變量,並且在設置中包含了ant。
這是我的錯誤(如果有更多的信息需要,我會提供它)Phonegap 3.3通過節點創建項目
[phonegap] adding the Android platform...
[error] An error occured during creation of android sub-project.
C:\Users\denis\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:126
throw e;
^
Error: An error occurred while listing Android targets
at C:\Users\denis\.cordova\lib\android\cordova\3.3.0\bin\lib\check_reqs.js:8
7:29
at _rejected (C:\Users\denis\.cordova\lib\android\cordova\3.3.0\bin\node_mod
ules\q\q.js:808:24)
at C:\Users\denis\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js
:834:30
at Promise.when (C:\Users\denis\.cordova\lib\android\cordova\3.3.0\bin\node_
modules\q\q.js:1079:31)
at Promise.promise.promiseDispatch (C:\Users\denis\.cordova\lib\android\cord
ova\3.3.0\bin\node_modules\q\q.js:752:41)
at C:\Users\denis\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.js
:574:44
at flush (C:\Users\denis\.cordova\lib\android\cordova\3.3.0\bin\node_modules
\q\q.js:108:17)
at process._tickCallback (node.js:415:13)
您是否在啓動add platform命令之前執行cd到您的應用程序文件夾? – QuickFix