1. 环境搭建
JDK 安装及环境变量配置(安装教程参考)
安装python2.7(切记勿装3.x,问题较多)安装教程参考
android SDK 安装( 安装教程参考) 建议安装7.0 或以上。
Node 安装(建议安装8.9)
2. 按官方教程操作
-
Install Ionic
npm install -g cordova ionic
-
Start an App
ionic start myApp tabs
Create an Ionic App using one of our ready-made app templates, or a blank one to start fresh. Check out the Market for more designs.
For v1 projects, use the
--type ionic1
flag.$ ionic start myApp blank
$ ionic start myApp tabs
-
Run your App
cd myApp ionic serve
Much of your app can be built right in the browser with
ionic serve
. We recommend starting with this workflow.When you‘re ready to deploy your app to a real device, check out our Deploying guide.
Build your App
android (安装过android sdk)
cordova platform add android
cordova run adnroid
cordova platform add ios
cordova run ios