minSdkVersion 19 cannot be smaller than version 22
When you are facing this error during ionic project building, it is as a result that cordova does not set minSdkVersion and targetSdkVersion correctly in app apk.
This was due to a bug in email@example.com but now solved with cordova-android updated versions.
Updating to firstname.lastname@example.org is required when facing this issue and it is pretty simple in doing that.
Lunch terminal inside project folder and run these two commands to upgrade:
//first remove cordova platform android cordova platform remove android //install email@example.com or higher cordova platform add firstname.lastname@example.org
compile project again and it should work.
Read more about cordova versions from the official website