Getting error in Android Studio 2.1 with java 8 : <p>Currently I am using <code>java 8</code> with latest <code>android studio 2.1</code></p>

<p>Here is my <code>build.gradle</code> file </p>

<pre><code>android {
    compileSdkVersion 22
    buildToolsVersion "24rc3"

    defaultConfig {
        applicationId "com.name"
        minSdkVersion 10
        targetSdkVersion 19
        jackOptions {
            enabled true
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
.......
}
</code></pre>

<p>I am getting the below compile time error that I have no clue</p>

<blockquote>
  <p>Error:com.android.jack.frontend.FrontendCompilationException: Failed
  to compile    at com.android.jack.Jack.buildSession(Jack.java:892)    at
  com.android.jack.Jack.run(Jack.java:472)  at
  com.android.jack.api.v01.impl.Api01ConfigImpl$Api01CompilationTaskImpl.run(Api01ConfigImpl.java:102)
    ... 8 more Warning:Exception while processing task
  java.io.IOException: com.android.jack.api.v01.CompilationException:
  Failed to compile :oTT:compileDebugJavaWithJack FAILED Error:Execution
  failed for task ':oTT:compileDebugJavaWithJack'.</p>
  
  <blockquote>
    <p>java.io.IOException: com.android.jack.api.v01.CompilationException: Failed to compile Information:BUILD FAILED</p>
  </blockquote>
</blockquote>

<p>Please feel to ask if you need some details.</p>
