1. 需要下载ant,ant需要文件:
build.xml
<?xml version="1.0" ?> <project name ="antPro" default ="getBaseDir" basedir ="F:/antbuild"> <target name="getBaseDir"> <echo message="The base dir is: ${basedir}"/> </target> </project>
2. 需要安装git bash
3. 需要安装node.js
4.需要JDK及环境变量配置
5.需要ADT及环境变量配置
6. 详情请仔细看cordova官网
7.相关环境变量:
ANT_HOME
F:\apache-ant-1.9.4
CLASS_PATH
.
JAVA_HOME
C:\Program Files\Java\jdk1.7.0_51
PATH
F:\Android1\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;F:\Android1\adt-bundle-windows-x86_64-20140702\sdk\tools;%ANT_HOME%\bin;C:\Program Files\nodejs;%JAVA_HOME%\bin;C:\Users\lenovo\AppData\Roaming\npm
时间: 2024-10-12 20:36:35