Error when packaging for Android: "rungradle.bat :app:assembleDebug"

If I build to android I get the error “cmd.exe failed with args /c “D:\Game Dev\Unreal Projects[project]\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleDebug”

I have android studio setup with most SDKs installed (including latest) and with 21.3 as NDK.
I setup the system environment properly, deleted .gradle folder and intermediate folder already and a lot of troubleshooting.

I still cannot get rid of this error. Does anyone know how to?