D:\Shabbir\AndroidTest>cordova platform add android
Creating android project...
C:\Documents and Settings\avaya11\Application Data\npm\node_modules\cordova\node
_modules\q\q.js:126
throw e;
^
Error: An error occured during creation of android sub-project.
C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3.0\bin\node_mo
dules\q\q.js:126
throw e;
^
Error: An error occurred while listing Android targets
at C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3.0\bin\
lib\check_reqs.js:87:29
at _rejected (C:\Documents and Settings\avaya11\.cordova\lib\android\cordova
\3.3.0\bin\node_modules\q\q.js:808:24)
at C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3.0\bin\
node_modules\q\q.js:834:30
at Promise.when (C:\Documents and Settings\avaya11\.cordova\lib\android\cord
ova\3.3.0\bin\node_modules\q\q.js:1079:31)
at Promise.promise.promiseDispatch (C:\Documents and Settings\avaya11\.cordo
va\lib\android\cordova\3.3.0\bin\node_modules\q\q.js:752:41)
at C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3.0\bin\
node_modules\q\q.js:574:44
at flush (C:\Documents and Settings\avaya11\.cordova\lib\android\cordova\3.3
.0\bin\node_modules\q\q.js:108:17)
at process._tickCallback (node.js:415:13)
at C:\Documents and Settings\avaya11\Application Data\npm\node_modules\cordo
va\src\platform.js:244:30
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
D:\Shabbir\AndroidTest>
這個錯誤我錯誤同時加入Android平臺的科爾多瓦
我下載的NodeJS並安裝繼
npm -g install phonegap
npm -g install cordova
npm -g install plugman
npm -g install ant
我設置一些路徑爲
PATH
C:\Documents and Settings\avaya11\Application Data\npm;C:\Documents and Settings\avaya11\Application Data\npm\node_modules\ant;C:\NEW ANDROID\sdk\platforms;C:\NEW ANDROID\sdk\platform-tools;C:\Documents and Settings\avaya11\Application Data\npm\node_modules\ant\bin;C:\Program Files\Java\jdk1.6.0_45\bin
這是ANT_HOME我從here下載的路徑
ANT_HOME
C:\Program Files\Java\apache-ant-1.9.3
還增加了JAVA_HOME,ANDROID_HOME
我做了所有可能的方法,但仍然發現錯誤PLZ幫我找到解決 我想我感到困惑要設置的路徑。
你使用的是MAC嗎? – Sport
這個關於android sdk的錯誤不在你的項目路徑中 – Sport
C:\ NEW ANDROID \ sdk \ platform-tools; C:\ NEW ANDROID \ sdk \ tools嘗試此路徑 – Sport