当我试图通过此命令添加平台时cordova平台添加android我得到了以下错误
我搜索了很多,尝试了所有可能的解决方案,但无法修复这个ANT错误
请给我一些如何修复的建议。
C:Users.cordovalibandroidcordova3.4.0binnode_modulesqq.js: 126
throw e;
^ Error: ERROR : executing command 'ant', make sure you have ant installed and add ed to your path.
at C:Users.cordovalibandroidcordova3.4.0binlibcheck_req s.js:47:27
at exithandler (child_process.js:633:7)
at ChildProcess.errorhandler (child_process.js:649:5)
at ChildProcess.EventEmitter.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:795:12) Error: C:Users.cordovalibandroidcordova3.4.0bincreate.bat: C ommand failed with exit code 8
at ChildProcess.whenDone (C:UsersAppDataRoamingnpmnode_modu lescordovasrcsuperspawn.js:126:23)
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)
您需要在系统上安装Apache ANT,并在系统环境变量中设置ANT路径。在用户变量中设置以下选项。
ANT_HOME C:apache-ant-1.8.2
Path ;C:apache-ant-1.8.2bin
将C:\apache-ant-1.8.2替换为系统上的ant安装路径。您需要添加;C: \apache-ant-1.8.2\bin。不要替换它。