不能在PhoneGap的Android的加入平台 [英] Cannot add Android Platform in Phonegap
问题描述
我要创建使用PhoneGap的Android应用。我已经安装的NodeJS,PhoneGap的,科尔多瓦,日食和一切。但是,当试图添加Android平台我收到此错误。很多搜索一些后说,加入蚁族的路径系统变量。我已经做到了。但可能是我做错了。尝试了很多次。不工作。在这里的错误为什么我在尝试添加Android平台越来越
C:\\你好>科尔多瓦平台添加的android
创建Android项目...C:\\用户\\ gijo \\ .cordova \\ lib目录\\机器人\\科尔多瓦\\ 3.5.1 \\ BIN \\ node_modules \\ Q \\ q.js:126
Ë扔掉;
^
错误:错误:执行命令蚁族,确保你已经安装了蚂蚁,并添加
编到您的路径。
在C:\\用户\\ gijo \\ .cordova \\ lib目录\\机器人\\科尔多瓦\\ 3.5.1 \\ BIN \\ lib目录\\ check_reqs.js:47
:27
在exithandler(child_process.js:644:7)
在ChildProcess.errorhandler(child_process.js:660:5)
在ChildProcess.emit(events.js:95:17)
在Process.ChildProcess._handle.onexit(child_process.js:808:12)
错误:C:\\用户\\ gijo \\ .cordova \\ lib目录\\机器人\\科尔多瓦\\ 3.5.1 \\ BIN \\ create.bat:命令
失败,退出code 8
在ChildProcess.whenDone(C:\\用户\\ gijo \\应用程序数据\\漫游\\故宫\\ node_modules \\心病
多娃\\ node_modules \\科尔多瓦-lib目录的\\ src \\科尔多瓦\\ superspawn.js:135:23)
在ChildProcess.emit(events.js:98:17)
在maybeClose(child_process.js:756:16)
在Process.ChildProcess._handle.onexit(child_process.js:823:5)C:\\你好>
我有同样的问题,但与相关solved.The问题蚂蚁
path.Set系统路径通过这种方式的变量。
转到Environmentvariables->系统变量 - >选择路径
变量点击编辑和分号后添加蚂蚁
路径。
I want to create Android apps using Phonegap. I have installed nodejs, phonegap, cordova, eclipse and everything. But while trying to add android platform i am getting this error. After a lot of searching some says add 'ant' path to system variables. I have done that. But may be i did wrong. Tried a lot of times. Not working. Here the error i am getting while trying to add android platform
C:\hello>cordova platform add android
Creating android project...
C:\Users\gijo\.cordova\lib\android\cordova\3.5.1\bin\node_modules\q\q.js:126
throw e;
^
Error: ERROR : executing command 'ant', make sure you have ant installed and add
ed to your path.
at C:\Users\gijo\.cordova\lib\android\cordova\3.5.1\bin\lib\check_reqs.js:47
:27
at exithandler (child_process.js:644:7)
at ChildProcess.errorhandler (child_process.js:660:5)
at ChildProcess.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:808:12)
Error: C:\Users\gijo\.cordova\lib\android\cordova\3.5.1\bin\create.bat: Command
failed with exit code 8
at ChildProcess.whenDone (C:\Users\gijo\AppData\Roaming\npm\node_modules\cor
dova\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)
C:\hello>
I had the same problem but solved.The issue related with ant
path.Set the path in system variables by this way.
goto Environmentvariables->system variables->select path
variable click edit and add your ant
path after a semicolon.
这篇关于不能在PhoneGap的Android的加入平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!