title: Execution failed for task ':app:preDexDebug
body: <blockquote>
    <p>Error:Execution failed for task ':app:preDexDebug'.
    '>' com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_65\bin\java.exe'' finished with non-zero exit value 1</p>
  </blockquote>
  
  <p>This is the error I'm getting, I've recently updated my java to 1.8.0.65(if you couldn't tell) and I've updated the studio but after this and after I added mysql connector(not sure which is causing the issue) the latest 5.1.37. </p>
  
  <p>This is how my build.gradle looks</p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 22
      buildToolsVersion "22.0.1"
      compileOptions.encoding = 'windows-1251'
  
      defaultConfig {
          applicationId "alexxela.xela.geitkontroll2000"
          minSdkVersion 15
          targetSdkVersion 22
          versionCode 1
          versionName "1.0"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:22.1.1'
  }
  </code></pre>
  
  <p>I added the "compileOptions" after i didn't get it to work, but to no avail..</p>
  
  <p>anyone gotten issues simular and know how to fix it?(I've googled and found several types of same error but they don't seem to work(not 100% same error))</p>