1.安装node.js
2.安装jdk
3.安装adt
4.安装ant
5.配置环境变量
JAVA_HOME
C:\Program Files (x86)\Java\jdk1.7.0_45
ANT_HOME
D:\Program Files (x86)\apache-ant-1.9.4
PATH
D:\Program Files (x86)\adt-bundle-windows-x86-20130917\sdk\platform-tools;
D:\Program Files (x86)\adt-bundle-windows-x86-20130917\sdk\tools;
%JAVA_HOME%\bin;
%JAVA_HOME%\jre\bin;
%ANT_HOME%\bin;
6.执行命令
npm install -g [email protected]
npm install -g [email protected]
7.测试是否安装正确
java -version
javac -version
phonegap -version
cordova -version
ant -version
PS:此版本cordova的api level为19
时间: 2024-10-18 01:45:06