Before we dive in to the actual development, we need to do some preparation work.
First step is to make sure you got the Cordova CLI installed and the necessary SDKs.
$ npm install -g cordova
Update your ~/.bashrc file to contain the correct paths to your installation of Android Studio:
Start Android studio by changing into the folder you installed it in and run
./studio.sh. Next step is to install the individual SDKs:
Open the “Configure” menu at the bottom of the window:
Select the desired SDKs. As per May 2017 Cordova supports 4.4 and up and click on “Apply” to install the SDKs.
In order to develop/build a Mobile app, we need to add the Cordova mode to our Quasar project. What this does is that it uses Cordova CLI to generate a Cordova project in
/src-cordova/www folder will be overwritten each time you build.
$ quasar mode -a cordova
You can now verify if everything is in order. “cd” into
/src-cordova and type:
$ cordova requirements
On some newer Debian-based operating systems you might face a very persistent problem when running
cordova requiremets. Please see the “Android SDK not found” after installation section for assistance.
If you want to jump right in and start developing, you can skip the previous step with “quasar mode” command and issue:
$ quasar dev -m cordova -T [android|ios]
This will add Cordova mode automatically, if it is missing.