For me, the following commands solved the problem:
cordova platform remove android
cordova platform add android
ionic build android
For me, the following commands solved the problem:
cordova platform remove android
cordova platform add android
ionic build android