title: Android Studio errors. After trying so many solution not able to configure it out.PC RAM 4gb
body: <blockquote>
  <p>Error:UNEXPECTED TOP-LEVEL ERROR:</p>
  <p>Error:java.lang.OutOfMemoryError: Java heap space</p>
  <p>Error:Picked up _JAVA_OPTIONS: -Xmx512M</p>
  <p>Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
  com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_101\bin\java.exe'' finished with non-zero exit value 3</p>
  </blockquote>