1.创建cordova项目
cordova create hello com.example.hello HelloWorld
2.进入项目添加平台
cd hello
cordova platform add ios --save
cordova platform add android --save
检查当前平台设置情况
cordova platform ls
检测你是否满足构建平台的要求:cordova requirements
cordova requirements
Requirements check results for android:
Java JDK: installed .
Android SDK: installed
Android target: installed android-19,android-21,android-22,android-23,Google Inc.:Google APIs:19,Google Inc.:Google APIs (x86 System Image):19,Google Inc.:Google APIs:23
Gradle: installed
Requirements check results for ios:
Apple OS X: not installed
Cordova tooling for iOS requires Apple OS X
Error: Some of requirements check failed
res目录为app应用图片属性