在phonegap android上构建错误

时间:2014-05-12 16:57:52

标签: cordova

我已经创建了一个新应用,当我尝试构建时出现错误

executing command 'ant' make sure you have ant installed and added to your path

1 个答案:

答案 0 :(得分:1)

安装Apache Ant

注意:zip存档二进制版本

此外,PhoneGap需要为所有依赖的sdks和平台正确指定其所有路径。

添加到您的路径中,有人会这样想:

Variable Name: JAVA_HOME Variable Value: C:\Program Files\Java\jdk1.7.0_45;

Variable Name: PATH Variable Value: %JAVA_HOME%\bin;

Variable Name: PATH Variable Value: C:\Documents and Settings\Your Name\Application Data\npm;

Variable Name: PATH Variable Value: C:\Your Installation Path\To Node JS\

Variable Name: ANT_HOME Variable Value: C:\Your Path\To Ant\apache-ant-1.9.3;

Variable Name: PATH Variable Value: %ANT_HOME%\bin;

Variable Name: ANDROID_SDK_HOME Variable Value: C:\Location To\Your Work\Environment\adt-bundle-windows-x86-20131030\sdk;

Variable Name: PATH Variable Value: C:\Location To\Your Work\Environment\adt-bundle-windows-x86-20131030\sdk\platform-tools;

Variable Name: PATH Variable Value: C:\Location To\Your Work\Environment\adt-bundle-windows-x86-20131030\sdk\tools;

我希望它有所帮助:)