ionic = Cordova + Angular + ionic CSS
// 安装(失败的话 Mac 尝试使用 sudo,Windows 尝试管理员身份运行 cmd)
$ npm install -g cordova ionic
// 安装后可以验证一下 ionic cli 版本
$ ionic -version
3.5.0
$ ionic start ionic3Demo tabs
$ cd ionic3Demo/
$ npm install
// 在浏览器中运行项目
$ ionic serve
//同步
$ ionic platform add ios
$ ionic cordova build ios
$ ionic cordova emulate ios
$ ionic cordova platform add android
$ ionic cordova build android
问题1:fail to find 'android_home' .
http://blog.csdn.net/zhq426/article/details/50390258
java 版本要1.8.0
问题2:you have not accept the license agreements of the following sdk components,
before building your project ,you need to accept the license agreements and complete the installation of the missing components usign the android studio sdk manager
解答2:Go to your $ANDROID_HOME/tools/bin and fire the cmd
./sdkmanager --update
$ ionic cordova emulate android
问题1:killing could not read ok from adb server
http://blog.csdn.net/rodulf/article/details/51939974