title: Error:Jack is required to support java 8 language features. Either enable Jack or remove sourceCompatibility JavaVersion.VERSION_1_8
body: <p>As per mentioned in developer.android website</p>
  
  <blockquote>
    <p>"The Jack toolchain is deprecated, as per this announcement. If your
    project depends on Jack, you should migrate to using Java 8 support
    built into Android Studio’s default toolchain."</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/tL1s4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tL1s4.png" alt="enter image description here"></a></p>
  
  <p>I need to use lambda expressions so I have disabled the jack options, but when I compile my code, I get the following error</p>
  
  <pre><code>Error:Jack is required to support Java 8 language features. Either enable Jack or remove sourceCompatibility JavaVersion.VERSION_1_8. 
  </code></pre>
  
  <p>Below is the screenshot of my build.gradle file</p>
  
  <p><a href="https://i.stack.imgur.com/KKi22.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KKi22.png" alt="enter image description here"></a></p>