Ionic build command was working fine until I decided to add some custom splash screen and run the following command,
ionic resources
Delete folder platform Delete folder android and ios in folder "resources" execute : ionic platform add android after execute : ionic resources and finaly execute : ionic build android