- 安装
npm install -g cordova
- 安装android studio sdk
百度安装
https://developer.android.google.cn/studio/ https://android-sdk.en.softonic.com
- 安装cordova quasar model
quasar mode add cordova
- 切换到新增model
cd src-cordova
- 安装平台支持
cordova platform add [android|ios]
- 检查运行所需条件
cordova requirements
根据提示,自定完成未安装的插件
- java jdk
- android sdk
- gradle
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
- 开发模式运行
quasar dev -m cordova -T [android|ios]
- 生产模式打包
quasar build -m cordova -T [ios|android]
参考链接
https://quasar.dev/quasar-cli/developing-cordova-apps/preparation
https://quasar.dev/quasar-cli/developing-cordova-apps/build-commands