当我执行 cordova build 后将cordova更新到3.6.3后我收到此错误:
H:\Android\Workspace\its>cordova build
Running command: H:\Android\Workspace\its\platforms\android\cordova\build.bat
H:\Android\Workspace\its\platforms\android\cordova\node_modules\q\q.js:126
throw e;
^
Error: ENOENT, no such file or directory 'H:\Tizen\Dodatki\adt-bundle-windows-x8
6-20140702\tools\lib\build.template'
at Object.fs.openSync (fs.js:438:18)
at Object.fs.readFileSync (fs.js:289:15)
at H:\Android\Workspace\its\platforms\android\cordova\lib\build.js:93:40
at _fulfilled (H:\Android\Workspace\its\platforms\android\cordova\node_mo
dules\q\q.js:798:54)
at self.promiseDispatch.done (H:\Android\Workspace\its\platforms\android\
cordova\node_modules\q\q.js:827:30)
at Promise.promise.promiseDispatch (H:\Android\Workspace\its\platforms\an
droid\cordova\node_modules\q\q.js:760:13)
at H:\Android\Workspace\its\platforms\android\cordova\node_modules\q\q.js
:574:44
at flush (H:\Android\Workspace\its\platforms\android\cordova\node_modules
\q\q.js:108:17)
at process._tickCallback (node.js:419:13)
Error: H:\Android\Workspace\its\platforms\android\cordova\build.bat: Command
failed with exit code 8
at ChildProcess.whenDone (C:\Users\Mix\AppData\Roaming\npm\node_modules
\cordova\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)
我尝试重新安装并安装,没有任何帮助....任何建议?
此目录存在:
错误:ENOENT,没有这样的文件或目录 ' H:\ Tizen \ Dodatki \ ADT-束窗口-X8 6-20140702 \工具\ LIB \ build.template'
SOLUTION:
将ANDROID_HOME设置为H:\ android \ adt-bundle-windows-x86-20140702 \ sdk \ platform-tools;
记住最后添加;