title: Cannot resolve method 'forEach(<lambda expression>)' in Android Studio
body: <p>I have just added Java 8 support to my app with</p>
  
  <pre><code>jackOptions {
      enabled true
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>compileOptions {
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8
  }
  </code></pre>
  
  <p>I have this code:</p>
  
  <pre><code>for (Company company : companies) {
      save(company);
  }
  </code></pre>
  
  <p>and Android Studio tells me that it</p>
  
  <blockquote>
    <p>Can be replaced with foreach call</p>
  </blockquote>
  
  <p>After replace it, it looks like this:</p>
  
  <pre><code>companies.forEach((Company company) -&gt; {
      save(company);
  });
  </code></pre>
  
  <p>But now it's complaning:</p>
  
  <blockquote>
    <p>Cannot resolve method 'forEach()'</p>
  </blockquote>
  
  <p>I can compile and run my app properly. It's all about the editor.</p>
  
  <p>Any idea? I'm using Android Studio 2.3.3</p>