I\'m trying to get an APK file from a Ionic project with the \"cordova build --release android\" command on a Mac and it doesn\'t work as I get
cordova build --release android
I resolved the error using the way similar to Fakan. You just need to change the icon tag with src="resources\android\icon\drawable-hdpi.png" outside the platform tags to "resources\icon.png" to resolve this error