您好我刚开始在Windows上使用cordova,我遇到了一些问题。
当我跑cordova emulate android
时,它一直给我错误:
Error: Failed to run "ant -version", make sure you have ant installed and added
to your PATH.
at C:\Users\HuiHui\Documents\BasicCalculator\platforms\android\cordova\lib\c
heck_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 Process.ChildProcess._handle.onexit (child_process.js:823:5)
Error: C:\Users\HuiHui\Documents\BasicCalculator\platforms\android\cordova\run.b
at: Command failed with exit code 8
at ChildProcess.whenDone (C:\Users\HuiHui\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)
我不知道出了什么问题。
我已经安装了apache-ant
并添加到PATH变量但它仍然给了我同样的错误。
任何人都可以对此有所了解吗?