前提环境 :
1、安装node.js
2、Git客户端
3、安装cordova(http://cordova.apache.org/docs/en/5.0.0//guide/cli/index.html;http://rensanning.iteye.com):
npm install -g cordova
更新Cordova版本 : npm update cordova -g
3.1、安装,把%ANT_HOME%\bin加到Path环境变量中,不然会报Error “executing command 'ant'”错。
3.2、安装( or )--我用的是,把%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools加到Path环境变量中,不然会报"Error: An error occurred while listing Android targets"错,并提前创建好一个AVD。
引用
android -h
adb version android list avd