Please install the following in order to start with cordova development:
Download nodejs from the official website as per your operating system.
Install Android SDK with:
- SDK Tools
- SDK Platfrom tools
- SDK Build tools
- SDK Platfrom (API 22)
Also, use HAXM from Intel to speed up the Android Emulator on Intel based hardware.
Install ionic pacakge globally:
npm install -g cordova ionic
Create a blank app which you can use to test if all packages are installed and working correctly.
ionic start BlankSlate blank
Based on the platform you are developing for, run the following command(s):
ionic platform add android
ionic platform add ios
Create ‘apk’ bundle
Now to create an ‘apk’ bundle, run the following command:
ionic build android
APK would be created in:
Installing apk bundle into AVD
To install APK into any Virtual Device, just start the AVD, and drag and drop APK into the Emulator.
Debugging on chrome
To debug apps on chrome: