Android Packaging "Error: cmd.exe failed with args"

I had a similar problem.

Solved by reinstalling the Android Studio, and doing all the required updates.

Best