After trying about 5 or 6 accepted answers on here and also trying a few of my own, i have done everything i know how from a fresh install to deleting the .gradle folder to changing the dex options in build.gradle and after every time i get this error:
Error:Process 'command '/home/draven/Downloads/android-studio/jre/bin/java'' finished with non-zero exit value 2
Im sorry for a lack of information as i am a bit frustrated, but i will give all relevant information needed.
Log: Pastebin of the Log
Here is a screenshot of the error, the IDE is a fresh install.