ERROR: cmd.exe failed with args /c \"/APKgradle ungradle.bat...
LogPlayLevel: ERROR: cmd.exe failed with args /c "\Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleDebug.
Unchecking Gradle Worked for me. Just go to Project Settings > Platforms: Android and uncheck Enable Gradle instead of Ant.
Apparent Gradle is considered to be one of the worst Java compilers out there, not really sure why UE checks it by default.
if you found that does not fix your problem, please try this:
1、"Enable gradle instead of ant" enabled.
2、run NVPACK/android-sdk-windows/tools/android.ba, please configurate the enviroment in the system advance enviroment first,
"JAVA_HOME= E:\NVPACK\jdk1.8.0_77"
3、click on "Deselect All"
4、update Extras/Android Support Repository