cordova环境配置
需要JAVA_HOME
将jre的bin目录加入path
需要path中能ant
下载完成后解压该文件至某个安全的目录下,然后将改文件夹内的bin文件夹路径添加至系统Path环境变量中,如存放在C盘 Program Files目录下则Path中添加如下值 C:Program Filesapache-ant-1.9.4in;
下载地址:http://files.cnblogs.com/files/wancy86/apache-ant-1.9.7-bin.zip
cordova build报错
Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
解决办法 - 配置环境变量:
JAVA_HOME
C:Program FilesJavajdk1.8.0_91
ANDROID_HOME
D:adt-windows-x86_64sdk
PATH加入
%ANDROID_HOME%;
%JAVA_HOME%in;
%ANDROID_HOME% ools;
%ANDROID_HOME%platform-tools;
贴图时间到
安装5.x的platform
再次执行