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

I have the same error, but I’ve found a temporary workaround → executing gradle from command line

  1. Start cmd.exe manually
  2. Cd "D:[PROJECT]\Intermediate/Android/APK\gradle"

  3. rungradle.bat :app:assembleDebug

This created the .apk file in the folder [PROJECT]\Binaries\Android

This step however doesn’t generate the installation file, so I’ve used the project settings to package the complete data into the .apk file.