Reading here, it looks like there’s a bug in the 6.0.0 version of the Android Cordova platform. So it looks like an upgrade fixes it.
ionic cordova platform rm android
ionic cordova platform add android@latest
ionic cordova resources
ionic cordova build android
However, when I upgraded to android 6.2.3
(latest), I now get:
ionic cordova build android
> cordova build android
✖ Running command - failed!
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova build android (exit code 1):
Error: cordovaProject.projectConfig.getFileResources is not a function
Richards-MacBook-Pro:theWhoZoo richardmarais$ (node:60728) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: channel closed
(node:60728) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I am going to try figure this out first, then hopefully the above issue will be resolved.