title: How use java 8 in Android api 21?
body: <p>Android studio 3.2, Android api 21., java 1.8</p>
  
  <p>In my <strong>app/build.gradle</strong>:</p>
  
  <pre><code>compileOptions {
          targetCompatibility JavaVersion.VERSION_1_8
          sourceCompatibility JavaVersion.VERSION_1_8
      }
  </code></pre>
  
  <p>I want to use new features of Java 8, like try-with-resources, streams and so on.
  But it require at least api 24. What can I do?</p>