ionic 2 build code example
Example 1: generate apk ionic 1
$ ionic cordova build --release android
Example 2: ionic build
ionic cordova build <platform> [options]
$ ionic cordova build --release android
ionic cordova build <platform> [options]