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