ADT,SDK国内下载地址:html
http://www.cnblogs.com/willian/p/3516613.htmlshell
将下载的ADT和SDK放到目录中,这里统一放到 /Users/***/Developer/ 目录下。
xcode
一、添加环境变量bash
export PATH=/Users/***/Developer/adt-bundle-mac-x86_64-20131030/sdk/platform-tools:$PATH export PATH=/Users/***/Develope、radt-bundle-mac-x86_64-20131030/sdk/tools:$PATH
二、配置文件当即生效命令行
source .bash_profile
三、安装ant(这里是经过brew安装)
code
brew install ant
若是在安装ant的过程当中失败的话,运行
orm
xcode-select –install
以后再从新执行安装ant命令。
htm
完成。cordova
若是是使用cordova的话,将命令行退出,从新打开后执行cordova命令。blog