For Fixing this issue, Just remove your Existing android platform
Follow this command for removing:
ionic Cordova platform rm android
Then again install with this command:
ionic Cordova platform add android
After that build the app.
If again you have got the error then ping me. Otherwise, this will work and app build is done successfully.