build apk in ionic code example
Example 1: generate apk ionic 1
$ ionic cordova build --release android
Example 2: build ionic 3 project apk
ionic cordova platform add android
npm i -g cordova-res
ionic cordova resources android --force
ionic cordova build android --release
ionic cordova build android --prod
ionic cordova run android