An error occurred while running cordova run android (exit code 1)

LAUNCH SUCCESS


[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.
        
[ERROR] An error occurred while running cordova run android (exit code 1).
        

even though the app runs fine on ionic serve and cordova run android.

Run with --verbose and/or run the cordova command shown above the error message.