I’ve built a bunch of times and installed the application on my phone for testing, and there were no problems. As I decided to create a version for Google Play, errors started.
The error also occurred on versions a couple of years ago on UE 4.18, but then I deleted NVPACK, downloaded again and everything worked, but now:
I removed all of the files for android studio and codeworks (which took some work for some reason) and started with this process from scratch, also installing JDK 15 fresh.
It worked. The “cmd.exe failed with args /c” failure is gone. I hope this works for you. I spent a week looking for the answer, and this 20 minute step-by-step setup solved the problem.
side note: my desktop system has not had this issue at all, and is still set up differently, for some reason the laptops would not work unless this exact setup is in place.